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

Function test_fstring_with_interpolation

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

Source from the content-addressed store, hash-verified

14
15 #[test]
16 fn test_fstring_with_interpolation() {
17 let source = r#"f"Hello, {name}!""#;
18 let mut scanner = Lexer::new(source);
19
20 let token = scanner.next().unwrap();
21 assert_eq!(token.kind, TokenType::FString);
22 assert_eq!(token.lexeme, r#"Hello, {name}!"#);
23 }
24
25 #[test]
26 fn test_fstring_with_multiple_interpolations() {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected