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

Function test_shebang

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

Source from the content-addressed store, hash-verified

1036
1037 #[test]
1038 fn test_shebang() {
1039 do_ok_test(
1040 "#!/usr/bin/env endbasic\nOUT 1\n",
1041 &[
1042 ts(new_auto_symbol("OUT"), 2, 1, 3),
1043 ts(Token::Integer(1), 2, 5, 1),
1044 ts(Token::Eol, 2, 6, 1),
1045 ts(Token::Eof, 3, 1, 0),
1046 ],
1047 );
1048
1049 do_ok_test("#!/usr/bin/env endbasic", &[ts(Token::Eof, 1, 24, 0)]);
1050 }
1051
1052 #[test]
1053 fn test_invalid_hashes() {

Callers

nothing calls this directly

Calls 3

tsFunction · 0.85
new_auto_symbolFunction · 0.85
do_ok_testFunction · 0.70

Tested by

no test coverage detected