Skip to content

Commit

Permalink
adjust indentation in for loop, take 2 (tkelman)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed Jun 17, 2017
1 parent bf245f7 commit cf4a2e1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/random.jl
Original file line number Diff line number Diff line change
Expand Up @@ -545,14 +545,14 @@ let b = ['0':'9';'A':'Z';'a':'z']
@test length(randstring(rng..., 20)) == 20
@test issubset(randstring(rng...), b)
for c = ['a':'z', "qwèrtï", Set(Vector{UInt8}("gcat"))],
len = [8, 20]
s = len == 8 ? randstring(rng..., c) : randstring(rng..., c, len)
@test length(s) == len
if eltype(c) == Char
@test issubset(s, c)
else # UInt8
@test issubset(s, map(Char, c))
end
len = [8, 20]
s = len == 8 ? randstring(rng..., c) : randstring(rng..., c, len)
@test length(s) == len
if eltype(c) == Char
@test issubset(s, c)
else # UInt8
@test issubset(s, map(Char, c))
end
end
end
@test randstring(MersenneTwister(0)) == randstring(MersenneTwister(0), b)
Expand Down

0 comments on commit cf4a2e1

Please sign in to comment.