Skip to content

Commit 243017d

Browse files
committed
Test additional type stability
1 parent 8d23d7b commit 243017d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unittests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ end
231231
@test ustrip(z) 60 * 60 * 24 * 365.25
232232

233233
# Test type stability of extreme range of units
234+
@test typeof(u"1") == Quantity{Float64,DEFAULT_DIM_TYPE}
235+
@test typeof(u"1f0") == Quantity{Float64,DEFAULT_DIM_TYPE}
234236
@test typeof(u"s"^2) == Quantity{Float64,DEFAULT_DIM_TYPE}
235237
@test typeof(u"") == Quantity{Float64,DEFAULT_DIM_TYPE}
236238
@test typeof(u"Gyr") == Quantity{Float64,DEFAULT_DIM_TYPE}

0 commit comments

Comments
 (0)