Skip to content

Commit

Permalink
Fix lexer tests for escaped sequences (#232)
Browse files Browse the repository at this point in the history
* Fix lexer tests for escaped sequences
  • Loading branch information
c42f authored Jun 6, 2023
1 parent 0d1ef44 commit f81012f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_lexers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ end
lexer_test("\"a\"", Tokens.STRING_LIT)
lexer_test("'a'", Tokens.STRING_LIT)
lexer_test("\"proto3\"", Tokens.STRING_LIT)
lexer_test("'\uffff'", Tokens.STRING_LIT)
lexer_test("'\xff'", Tokens.STRING_LIT)
lexer_test("'\777'", Tokens.STRING_LIT)
lexer_test("'\U000fffff'", Tokens.STRING_LIT)
lexer_test("'\U0010ffff'", Tokens.STRING_LIT)
lexer_test(raw"'\uffff'", Tokens.STRING_LIT)
lexer_test(raw"'\xff'", Tokens.STRING_LIT)
lexer_test(raw"'\777'", Tokens.STRING_LIT)
lexer_test(raw"'\U000fffff'", Tokens.STRING_LIT)
lexer_test(raw"'\U0010ffff'", Tokens.STRING_LIT)
end

@testset "numeric literals" begin
Expand Down Expand Up @@ -223,4 +223,4 @@ end
lexer_test(w, KEYWORDS_AND_TYPES[w])
end
end
end
end

0 comments on commit f81012f

Please sign in to comment.