diff --git a/test/floatfuncs.jl b/test/floatfuncs.jl index e246e8df5cac6..4bed2e18170de 100644 --- a/test/floatfuncs.jl +++ b/test/floatfuncs.jl @@ -35,12 +35,6 @@ for elty in (Float16,Float32,Float64) @test !isinteger(elty(NaN)) end -# num2hex, hex2num -for elty in (Float16,Float32,Float64), _ = 1:10 - x = rand(elty) - @test hex2num(num2hex(x)) ≈ x -end - # round for elty in (Float32,Float64) x = rand(elty) diff --git a/test/intfuncs.jl b/test/intfuncs.jl index 0c6fc028a11c8..f89c065cfab6f 100644 --- a/test/intfuncs.jl +++ b/test/intfuncs.jl @@ -123,7 +123,6 @@ end @test hex(12) == "c" @test hex(-12, 3) == "-00c" -@test num2hex(1243) == (Int == Int32 ? "000004db" : "00000000000004db") @test base(2, 5, 7) == "0000101" diff --git a/test/numbers.jl b/test/numbers.jl index 24fcb24a1864a..a508c0f2580ad 100644 --- a/test/numbers.jl +++ b/test/numbers.jl @@ -386,20 +386,6 @@ end @test base(12,typemin(Int128)) == "-2a695925806818735399a37a20a31b3534a8" @test base(12,typemax(Int128)) == "2a695925806818735399a37a20a31b3534a7" -@test hex2num("3ff0000000000000") == 1. -@test hex2num("bff0000000000000") == -1. -@test hex2num("4000000000000000") == 2. -@test hex2num("7ff0000000000000") == Inf -@test hex2num("fff0000000000000") == -Inf -@test isnan(hex2num("7ff8000000000000")) -@test isnan(hex2num("fff8000000000000")) -@test hex2num("3f800000") == 1.0f0 -@test hex2num("bf800000") == -1.0f0 -@test hex2num("7f800000") == Inf32 -@test hex2num("ff800000") == -Inf32 -@test isnan(hex2num("7fc00000")) -@test isnan(hex2num("ffc00000")) - # floating-point printing @test repr(1.0) == "1.0" @test repr(-1.0) == "-1.0"