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

Function test_escaped_braces_in_fstring

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

Source from the content-addressed store, hash-verified

130
131 #[test]
132 fn test_escaped_braces_in_fstring() {
133 let source = r#"f"Escaped braces: \{not interpolated\}""#;
134 let mut scanner = Lexer::new(source);
135
136 let token = scanner.next().unwrap();
137 assert_eq!(token.kind, TokenType::FString);
138 assert_eq!(token.lexeme, r#"Escaped braces: \{not interpolated\}"#);
139 }
140
141 #[test]
142 fn test_fstring_with_complex_nested_expressions() {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected