Skip to content

Commit

Permalink
Add test for fstring middle with brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Glyphack committed Oct 9, 2024
1 parent 4f310bc commit 3c2e92b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compat/src/lexer_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,12 @@ print(a)
]);
}

// TODO: fstring middle offset is wrong in case of {{ or }}
#[test]
fn test_fstring_positions() {
python_tokenize_test_lexer(&["f\"{{{', '.join(dict_items)}}}\""]);
}

#[test]
#[should_panic]
fn test_lex_unterminated_string_double_quotes() {
Expand Down

0 comments on commit 3c2e92b

Please sign in to comment.