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

Function test_fstring_with_nested_braces

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

Source from the content-addressed store, hash-verified

34
35 #[test]
36 fn test_fstring_with_nested_braces() {
37 let source = r#"f"Nested: {{not interpolated}} but {interpolated}""#;
38 let mut scanner = Lexer::new(source);
39
40 let token = scanner.next().unwrap();
41 assert_eq!(token.kind, TokenType::FString);
42 assert_eq!(
43 token.lexeme,
44 r#"Nested: {{not interpolated}} but {interpolated}"#
45 );
46 }
47
48 #[test]
49 fn test_fstring_with_escaped_quotes() {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected