MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / test_basic_fstring

Function test_basic_fstring

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

Source from the content-addressed store, hash-verified

4
5 #[test]
6 fn test_basic_fstring() {
7 let source = r#"f"Hello, World!""#;
8 let mut scanner = Lexer::new(source);
9
10 let token = scanner.next().unwrap();
11 assert_eq!(token.kind, TokenType::FString);
12 assert_eq!(token.lexeme, r#"Hello, World!"#);
13 }
14
15 #[test]
16 fn test_fstring_with_interpolation() {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected