Skip to content

Commit

Permalink
base string fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer committed Nov 7, 2018
1 parent 3fd99c0 commit b055d7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b055d7b

Please sign in to comment.