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

Function test_fstring_with_unicode

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

Source from the content-addressed store, hash-verified

80
81 #[test]
82 fn test_fstring_with_unicode() {
83 let source = r#"f"Hello 你好 {name} 世界!""#;
84 let mut scanner = Lexer::new(source);
85
86 let token = scanner.next().unwrap();
87 assert_eq!(token.kind, TokenType::FString);
88 assert_eq!(token.lexeme, r#"Hello 你好 {name} 世界!"#);
89 }
90
91 #[test]
92 fn test_unterminated_fstring() {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected