MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / test_empty_fstring

Function test_empty_fstring

aiscript-lexer/src/fstring_tests.rs:72–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71 #[test]
72 fn test_empty_fstring() {
73 let source = r#"f"""#;
74 let mut scanner = Lexer::new(source);
75
76 let token = scanner.next().unwrap();
77 assert_eq!(token.kind, TokenType::FString);
78 assert_eq!(token.lexeme, r#""#);
79 }
80
81 #[test]
82 fn test_fstring_with_unicode() {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected