From 6799f711e6f5f2b64d34b039de2a229e57cc0072 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Wed, 10 Oct 2018 11:35:36 -0400 Subject: [PATCH] repeat char does not exist in 0.6 --- src/string/StringBenchmarks.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/string/StringBenchmarks.jl b/src/string/StringBenchmarks.jl index b92e3468..9c2583b4 100644 --- a/src/string/StringBenchmarks.jl +++ b/src/string/StringBenchmarks.jl @@ -69,7 +69,9 @@ g["barbarian backtrack"] = @benchmarkable readuntil(seekstart($buffer), $target) g = addgroup!(SUITE, "repeat") g["repeat str len 1"] = @benchmarkable repeat(" ", 500) g["repeat str len 16"] = @benchmarkable repeat("repeatmerepeatme", 500) -g["repeat char 1"] = @benchmarkable repeat(' ', 500) -g["repeat char 2"] = @benchmarkable repeat('α', 500) +if VERSION >= v"v0.7" + g["repeat char 1"] = @benchmarkable repeat(' ', 500) + g["repeat char 2"] = @benchmarkable repeat('α', 500) +end end # module