summaryrefslogtreecommitdiff
path: root/tests/paca.mjs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/paca.mjs18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/paca.mjs b/tests/paca.mjs
index b259968..a7cd929 100644
--- a/tests/paca.mjs
+++ b/tests/paca.mjs
@@ -73,6 +73,24 @@ const test_TRANSITION_FNS = t => {
},
);
});
+
+ t.testing("\"[\" only depends on `out`", () => {
+ t.assertEq(
+ TRANSITION_FNS["["]({ out: 123 }, null, null, null),
+ {
+ out: 123,
+ state: "class",
+ context: {
+ set: [],
+ range: {
+ from: [],
+ to: [],
+ where: "from",
+ },
+ },
+ },
+ );
+ });
};
const test_shouldConcat = t => {