Skip to content

Commit

Permalink
Fix 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangnrd committed Mar 5, 2025
1 parent 3391b17 commit 755f796
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ end
@testset "trunc" begin
bf_val = BFloat16(5.5)
@testset "$Ti" for Ti in (Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128)
@test trunc(Ti, bf_val) == Ti(5) skip=(BFloat16s.llvm_arithmetic && sizeof(Ti) == 16)
if !(BFloat16s.llvm_arithmetic && sizeof(Ti) == 16) # Can't use skip argument in @test on 1.6
@test trunc(Ti, bf_val) == Ti(5)
end
end

@test trunc(BFloat16, Float32(π)) == BFloat16(3.140625)
Expand Down

0 comments on commit 755f796

Please sign in to comment.