From b055d7bb662bb35b5e445c6aca552c678e152fd7 Mon Sep 17 00:00:00 2001 From: Carsten Bauer Date: Wed, 7 Nov 2018 18:22:07 +0100 Subject: [PATCH] base string fix --- test/runtests.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 0a46b08..58202ae 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -24,7 +24,11 @@ mktempdir() do dir contents = [nothing, "foo", "bar", Dict{Any,Any}("baz"=>"qux")] b = length(contents) - states = [Dict([(string(k, base=b, pad=6), contents[rem(div(k,b^p),b)+1]) for k=0:(b^3)^2-1]) for p=0:5] + @static if VERSION >= v"0.7.0" + states = [Dict([(string(k, base=b, pad=6), contents[rem(div(k,b^p),b)+1]) for k=0:(b^3)^2-1]) for p=0:5] + else + states = [Dict([(base(b, k, 6), contents[rem(div(k,b^p),b)+1]) for k=0:(b^3)^2-1]) for p=0:5] + end git_setup(states[1:3]...) try Git.transact() do