Test matching a semicolon

This commit is contained in:
josh committed 2022-07-23 22:25:17 -04:00
1 parent b682c72b17
commit bf075a69f6
1 file changed
+9
+9
View File
@@ -116,6 +116,15 @@ EOF
token foo; token foo;
token bar; token bar;
drop \\s+; drop \\s+;
EOF
end
it "matches a semicolon" do
expected = [
["semicolon", ";"],
]
expect(run(<<EOF, ";")).to eq expected
token semicolon \;;
EOF EOF
end end
end end