From 42e22a6a573c858543ce31c757ced6a20ab3c739 Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Sat, 6 Jul 2024 22:02:24 +1200 Subject: [PATCH] version-dependence --- test/parseblock.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/parseblock.jl b/test/parseblock.jl index 5b9b885..c741fc4 100644 --- a/test/parseblock.jl +++ b/test/parseblock.jl @@ -85,6 +85,11 @@ end @test exprs[1].expr == Expr(:toplevel, :x, :y, :z) @test exprs[1].code == "x; y; z\n" @test exprs[2].expr == :q - @test exprs[2].code == "q\n\n\n" + # TODO: There is a parsing difference here.. probably due to the JuliaSyntax change. + if VERSION < v"1.10" + @test exprs[2].code == "q\n" + else + @test exprs[2].code == "q\n\n\n" + end end end