Skip to content

Commit

Permalink
Update named unicode test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Aug 22, 2023
1 parent d286753 commit 01f082b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/ruff_python_parser/src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1993,7 +1993,7 @@ def f(arg=%timeit a = b):

#[test]
fn test_fstring_named_unicode() {
let source = r#"f"\N{BULLET} normal""#;
let source = r#"f"\N{BULLET} normal \Nope""#;
assert_debug_snapshot!(lex_source(source));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: lex_source(source)
[
FStringStart,
FStringMiddle(
"\\N{BULLET} normal",
"\\N{BULLET} normal \\Nope",
),
FStringEnd,
Newline,
Expand Down

0 comments on commit 01f082b

Please sign in to comment.