Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schulze committed Feb 3, 2021
1 parent 27cdf9e commit d5affe6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/syntax.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2158,6 +2158,12 @@ end
@test Meta.parse("a ⟂ b ⟂ c") == Expr(:comparison, :a, :, :b, :, :c)
@test Meta.parse("a ⟂ b ∥ c") == Expr(:comparison, :a, :, :b, :, :c)

# issue 39350
@testset "binary ⫪ and ⫫" begin
@test Meta.parse("a ⫪ b") == Expr(:call, :, :a, :b)
@test Meta.parse("a ⫫ b") == Expr(:call, :, :a, :b)
end

# only allow certain characters after interpolated vars (#25231)
@test Meta.parse("\"\$x෴ \"",raise=false) == Expr(:error, "interpolated variable \$x ends with invalid character \"\"; use \"\$(x)\" instead.")
@test Base.incomplete_tag(Meta.parse("\"\$foo", raise=false)) == :string
Expand Down

0 comments on commit d5affe6

Please sign in to comment.