Test matching a semicolon
This commit is contained in:
parent
b682c72b17
commit
bf075a69f6
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user