-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
The following tests are failing even after #115. I won't have time to investigate them further.
test "ellipsis does not continue across semicolon-separated // forms" do
assert Spitfire.parse("x...\n;//y") == s2q("x...\n;//y")
assert Spitfire.parse("x...\n;\n//y") == s2q("x...\n;\n//y")
assert Spitfire.parse("x...\n;\n# comment\n//y") == s2q("x...\n;\n# comment\n//y")
end
test "parenthesized //(do-end) keeps following when outside slash rhs" do
assert Spitfire.parse("//(foo do :ok end) when x") == s2q("//(foo do :ok end) when x")
assert Spitfire.parse("//(foo do :ok end)\nwhen x") == s2q("//(foo do :ok end)\nwhen x")
end
test "parenthesized //(do-end) keeps following <- outside slash rhs" do
assert Spitfire.parse("//(foo do :ok end) <- x") == s2q("//(foo do :ok end) <- x")
assert Spitfire.parse("//(foo do :ok end)\n<- x") == s2q("//(foo do :ok end)\n<- x")
end
test "parenthesized //(do-end) keeps following :: outside slash rhs" do
assert Spitfire.parse("//(foo do :ok end) :: x") == s2q("//(foo do :ok end) :: x")
assert Spitfire.parse("//(foo do :ok end)\n:: x") == s2q("//(foo do :ok end)\n:: x")
end
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels