Add spec for \s matching newline

This commit is contained in:
josh committed 2025-07-26 21:36:05 -04:00
1 parent 69aa3097c3
commit 54a0629e60
1 file changed
+7
+7
View File
@@ -187,6 +187,13 @@ EOF
]
expect(run(<<EOF, "$&*")).to eq expected
token t /[^%\\W]+/;
EOF
end
it "\\s matches a newline" do
expected = [["s", "\n"]]
expect(run(<<EOF, "\n")).to eq expected
token s /\\s/;
EOF
end
end