Skip to content

Commit

Permalink
move tests to parse.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jul 18, 2016
1 parent fb1f962 commit 8b49130
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4479,12 +4479,3 @@ function h17449(v)
return r[]
end
@test h17449(true) === :k

# PR #17393
for op in (:.==, :.&, :.|, :.≤)
@test parse("a $op b") == Expr(:call, op, :a, :b)
end
for op in (:.=, :.+=)
@test parse("a $op b") == Expr(op, :a, :b)
end

8 changes: 8 additions & 0 deletions test/parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -555,3 +555,11 @@ end

# error throwing branch from #10560
@test_throws ArgumentError Base.tryparse_internal(Bool, "foo", 1, 2, 10, true)

# PR #17393
for op in (:.==, :.&, :.|, :.≤)
@test parse("a $op b") == Expr(:call, op, :a, :b)
end
for op in (:.=, :.+=)
@test parse("a $op b") == Expr(op, :a, :b)
end

0 comments on commit 8b49130

Please sign in to comment.