ladybird/Userland/Libraries/LibJS/Tests/syntax/slash-after-block.js

7 lines
199 B
JavaScript
Raw Normal View History

test("slash token resolution in lexer", () => {
expect(`{ blah.blah; }\n/foo/`).toEval();
expect("``/foo/").not.toEval();
expect("1/foo/").not.toEval();
expect("1/foo").toEval();
});