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

Function test_unterminated_fstring

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

Source from the content-addressed store, hash-verified

90
91 #[test]
92 fn test_unterminated_fstring() {
93 let source = r#"f"Unterminated"#;
94 let mut scanner = Lexer::new(source);
95
96 let token = scanner.next().unwrap();
97 assert_eq!(token.kind, TokenType::Invalid);
98 assert!(token.lexeme.contains("Unterminated"));
99 }
100
101 #[test]
102 fn test_fstring_followed_by_other_tokens() {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected