From 2450de810c0f2b3998e95b4051e74d6f348dd952 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Mon, 18 Jul 2016 19:31:36 -0400 Subject: [PATCH] move tests to parse.jl --- test/core.jl | 9 --------- test/parse.jl | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/test/core.jl b/test/core.jl index 1f54f260bebe3..1e153aba58154 100644 --- a/test/core.jl +++ b/test/core.jl @@ -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 - diff --git a/test/parse.jl b/test/parse.jl index b9eda6f987956..bf1defd425645 100644 --- a/test/parse.jl +++ b/test/parse.jl @@ -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