From 052b0f2c70a58ff6741c5075c74de2454fd667e2 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Thu, 15 Jun 2017 12:44:57 -0400 Subject: [PATCH] add tests for operators that are not supposed to be suffixable --- test/parse.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/parse.jl b/test/parse.jl index 9a4dded4bd353..2af911dbe05c1 100644 --- a/test/parse.jl +++ b/test/parse.jl @@ -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