MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_remarks

Function test_remarks

core/src/lexer.rs:1015–1035  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1013
1014 #[test]
1015 fn test_remarks() {
1016 do_ok_test(
1017 "REM This is a comment\nNOT 'This is another comment\n",
1018 &[
1019 ts(Token::Eol, 1, 22, 1),
1020 ts(Token::Not, 2, 1, 3),
1021 ts(Token::Eol, 2, 29, 1),
1022 ts(Token::Eof, 3, 1, 0),
1023 ],
1024 );
1025
1026 do_ok_test(
1027 "REM This is a comment: and the colon doesn't yield Eol\nNOT 'Another: comment\n",
1028 &[
1029 ts(Token::Eol, 1, 55, 1),
1030 ts(Token::Not, 2, 1, 3),
1031 ts(Token::Eol, 2, 22, 1),
1032 ts(Token::Eof, 3, 1, 0),
1033 ],
1034 );
1035 }
1036
1037 #[test]
1038 fn test_shebang() {

Callers

nothing calls this directly

Calls 2

tsFunction · 0.85
do_ok_testFunction · 0.70

Tested by

no test coverage detected