Skip to content

Commit

Permalink
add tests for operators that are not supposed to be suffixable
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jul 19, 2017
1 parent 6a118ef commit 052b0f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,9 @@ end === (3, String)
@test parse("3 +̂′ 4") == Expr(:call, :+̂′, 3, 4)
@test parse("3 +⁽¹⁾ 4") == Expr(:call, :+⁽¹⁾, 3, 4)
@test parse("3 +₍₀₎ 4") == Expr(:call, :+₍₀₎, 3, 4)
for bad in ('=', '$', ':', "||", "&&", "->", "<:")
@test_throws ParseError parse("3 $(bad)⁽¹⁾ 4")
end
@test Base.operator_precedence(:+̂) == Base.operator_precedence(:+)

# issue #19351
Expand Down

0 comments on commit 052b0f2

Please sign in to comment.