Add spec for \s matching newline

This commit is contained in:
Josh Holtrop 2025-07-26 21:36:05 -04:00
parent 69aa3097c3
commit 54a0629e60

View File

@ -187,6 +187,13 @@ EOF
] ]
expect(run(<<EOF, "$&*")).to eq expected expect(run(<<EOF, "$&*")).to eq expected
token t /[^%\\W]+/; 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 EOF
end end
end end