test tweaks
This commit is contained in:
parent
fcd091e8f0
commit
bdf02e42ae
@ -39,18 +39,4 @@ end
|
|||||||
2y + x
|
2y + x
|
||||||
end
|
end
|
||||||
|
|
||||||
for T in [Float32, Float64]
|
|
||||||
@test isa(param(T(1)), TrackedArray{T, 0})
|
|
||||||
@test isa(param(rand(T, 2)), TrackedArray{T, 1})
|
|
||||||
@test isa(param(rand(T, 2,2)), TrackedArray{T, 2})
|
|
||||||
end
|
|
||||||
|
|
||||||
# TODO: do we wand this behaviour ??
|
|
||||||
F = typeof(AbstractFloat(1))
|
|
||||||
for T in [Int32, Int64]
|
|
||||||
@test isa(param(T(1)), TrackedArray{F, 0})
|
|
||||||
@test isa(param(rand(T, 2)), TrackedArray{F, 1})
|
|
||||||
@test isa(param(rand(T, 2,2)), TrackedArray{F, 2})
|
|
||||||
end
|
|
||||||
|
|
||||||
end #testset
|
end #testset
|
||||||
|
Loading…
Reference in New Issue
Block a user