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

Function test_fstring_with_expressions

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

Source from the content-addressed store, hash-verified

60
61 #[test]
62 fn test_fstring_with_expressions() {
63 let source = r#"f"Result: {x + y * z}""#;
64 let mut scanner = Lexer::new(source);
65
66 let token = scanner.next().unwrap();
67 assert_eq!(token.kind, TokenType::FString);
68 assert_eq!(token.lexeme, r#"Result: {x + y * z}"#);
69 }
70
71 #[test]
72 fn test_empty_fstring() {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected