Skip to content

Commit

Permalink
Fix tests for type conversion test
Browse files Browse the repository at this point in the history
  • Loading branch information
roflmaostc committed Mar 22, 2021
1 parent d5d0700 commit b6307fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/concrete_generators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
def_T = Float64

Types_changed = [Bool, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128]
Typtes_unchanged = [ComplexF32, ComplexF64, Complex{Int}, Float32, Float64]
Types_unchanged = [ComplexF32, ComplexF64, Complex{Int}, Float32, Float64]

for T in Types_changed
IndexFunArrays.default_type(T, Float64) = Float64
for T2 in Types_changed
IndexFunArrays.default_type(T, def_T2) = def_T
@test IndexFunArrays.default_type(T, def_T) == def_T
end
end

for T in Types_changed
for T in Types_unchanged
for T2 in Types_changed
IndexFunArrays.default_type(T, T2) = T
@test IndexFunArrays.default_type(T, T2) == T
end
end
end
Expand Down

0 comments on commit b6307fe

Please sign in to comment.