Skip to content

Commit 755f796

Browse files
committed
Fix 1.6
1 parent 3391b17 commit 755f796

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ end
3838
@testset "trunc" begin
3939
bf_val = BFloat16(5.5)
4040
@testset "$Ti" for Ti in (Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128)
41-
@test trunc(Ti, bf_val) == Ti(5) skip=(BFloat16s.llvm_arithmetic && sizeof(Ti) == 16)
41+
if !(BFloat16s.llvm_arithmetic && sizeof(Ti) == 16) # Can't use skip argument in @test on 1.6
42+
@test trunc(Ti, bf_val) == Ti(5)
43+
end
4244
end
4345

4446
@test trunc(BFloat16, Float32(π)) == BFloat16(3.140625)

0 commit comments

Comments
 (0)