Skip to content

Commit 57b4698

Browse files
authored
Extend tests
1 parent c186125 commit 57b4698

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/TrackedTests.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ tp = InstructionTape()
733733
tr_int = TrackedReal(v_int, d, tp)
734734
tr_float = TrackedReal(v_float, d, tp)
735735
tr_float2 = TrackedReal(v_float2, d2, tp)
736+
tr_float32 = TrackedReal(Float32(v_float), Float32(d), tp)
736737

737738
@test hash(tr_float) === hash(v_float)
738739
@test hash(tr_float, hash(1)) === hash(v_float, hash(1))
@@ -756,8 +757,10 @@ tr_rand = rand(MersenneTwister(1), TrackedReal{Int,Float64,Nothing})
756757
@test eps(tr_float) === eps(v_float)
757758
@test eps(typeof(tr_float)) === eps(Float64)
758759

759-
@test floatmax(typeof(tr_float)) === floatmax(Float64)
760760
@test floatmin(typeof(tr_float)) === floatmin(Float64)
761+
@test floatmin(typeof(tr_float32)) === floatmin(Float32)
762+
@test floatmax(typeof(tr_float)) === floatmax(Float64)
763+
@test floatmax(typeof(tr_float32)) === floatmax(Float32)
761764

762765
@test floor(tr_float) === floor(v_float)
763766
@test floor(Int, tr_float) === floor(Int, v_float)

0 commit comments

Comments
 (0)