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

Function test_boolean_literals

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

Source from the content-addressed store, hash-verified

893
894 #[test]
895 fn test_boolean_literals() {
896 do_ok_test(
897 "true TRUE yes YES y false FALSE no NO n",
898 &[
899 ts(Token::Boolean(true), 1, 1, 4),
900 ts(Token::Boolean(true), 1, 6, 4),
901 ts(new_auto_symbol("yes"), 1, 11, 3),
902 ts(new_auto_symbol("YES"), 1, 15, 3),
903 ts(new_auto_symbol("y"), 1, 19, 1),
904 ts(Token::Boolean(false), 1, 21, 5),
905 ts(Token::Boolean(false), 1, 27, 5),
906 ts(new_auto_symbol("no"), 1, 33, 2),
907 ts(new_auto_symbol("NO"), 1, 36, 2),
908 ts(new_auto_symbol("n"), 1, 39, 1),
909 ts(Token::Eof, 1, 40, 0),
910 ],
911 );
912 }
913
914 #[test]
915 fn test_integer_literals() {

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