()
| 60 | |
| 61 | #[test] |
| 62 | fn test_fstring_with_expressions() { |
| 63 | let source = r#"f"Result: {x + y * z}""#; |
| 64 | let mut scanner = Lexer::new(source); |
| 65 | |
| 66 | let token = scanner.next().unwrap(); |
| 67 | assert_eq!(token.kind, TokenType::FString); |
| 68 | assert_eq!(token.lexeme, r#"Result: {x + y * z}"#); |
| 69 | } |
| 70 | |
| 71 | #[test] |
| 72 | fn test_empty_fstring() { |