Skip to content

Commit 3e83f77

Browse files
authored
Add additional promotion test
1 parent 3ac5111 commit 3e83f77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/unittests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ end
420420
@test promote(f64, f8) == (2, 2)
421421
@test typeof(promote(f64, f8)) == typeof((f64, f64))
422422
@test typeof(promote(FixedRational{Int8,10}(2), FixedRational{Int8,10}(2))) == typeof((f8, f8))
423+
@test typeof(promote(1.6, f64)) == typeof((1.6, 1.6))
423424

424425
# Required to hit integer branch (otherwise will go to `literal_pow`)
425426
f(i::Int) = Dimensions(length=1, mass=-1)^i

0 commit comments

Comments
 (0)