From 1763ffdc4eb47de4aeaef07cccc1c3e6fa30c15a Mon Sep 17 00:00:00 2001 From: Moelf Date: Sat, 11 Dec 2021 11:23:06 -0500 Subject: [PATCH] fix test --- test/runtests.jl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 6f26f8c..833fc9d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -24,6 +24,11 @@ using Test, OhMyREPL, CodeTracking s = read(rd, String) redirect_stdout(original_stdout) - @test contains(s, "\e[") - @test contains(s, "AbstractRange") + @static if VERSION > v"1.5" + @test contains(s, "\e[") + @test contains(s, "AbstractRange") + else + @test "\e[" ∈ s + @test "AbstractRange" ∈ s + end end