()
| 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() { |