Skip to content

Commit a615a0c

Browse files
committed
Bool <: Integer, so we need to special case it
1 parent d862a1a commit a615a0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/testsuite/testsuite.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module TestSuite
88
using Base.Test
99

1010
toarray(T, x::Tuple{X, Vararg{Int}}) where X = fill(first(x), Base.tail(x))
11+
toarray(::Type{T}, x::NTuple{N, Int}) where {T <: Bool, N} = rand(T, x)
1112
toarray(::Type{T}, x::NTuple{N, Int}) where {T <: Integer, N} = rand(T(1):T(10), x)
1213
toarray(T, x::NTuple{N, Int}) where N = rand(T, x)
1314
toarray(T, x) = x

0 commit comments

Comments
 (0)