Skip to content

Commit

Permalink
test: mark broken syntax tests
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed Jan 29, 2025
1 parent 94ef871 commit 54e1520
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/syntax.jl
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,8 @@ g21054(>:) = >:2
@test g21054(-) == -2

# issue #21168
@test Meta.lower(Main, :(a.[1])) == Expr(:error, "invalid syntax \"a.[1]\"")
@test Meta.lower(Main, :(a.{1})) == Expr(:error, "invalid syntax \"a.{1}\"")
@test_broken Meta.lower(Main, :(a.[1])) == Expr(:error, "invalid syntax \"a.[1]\"")
@test_broken Meta.lower(Main, :(a.{1})) == Expr(:error, "invalid syntax \"a.{1}\"")

# Issue #21225
let abstr = Meta.parse("abstract type X end")
Expand Down Expand Up @@ -1496,8 +1496,8 @@ end

# issue #26739
let exc = try Core.eval(@__MODULE__, :(sin.[1])) catch exc ; exc end
@test exc isa ErrorException
@test startswith(exc.msg, "syntax: invalid syntax \"sin.[1]\"")
@test_broken exc isa ErrorException
@test_broken startswith(exc.msg, "syntax: invalid syntax \"sin.[1]\"")
end

# issue #26873
Expand Down

0 comments on commit 54e1520

Please sign in to comment.