File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -462,16 +462,16 @@ end
462
462
@test utime (z) == 1
463
463
@test ustrip (z) ≈ 60 * 60 * 24 * 365.25
464
464
465
- # Test type stability of extreme range of units
466
- @test typeof (u " 1" ) == DEFAULT_QUANTITY_TYPE
467
- @test typeof (u " 1f0" ) == DEFAULT_QUANTITY_TYPE
465
+ # Test that `u_str` respects original type:
466
+ @test typeof (u " 1" ) == Int
467
+ @test typeof (u " 1f0" ) == Float32
468
468
@test typeof (u " s" ^ 2 ) == DEFAULT_QUANTITY_TYPE
469
469
@test typeof (u " Ω" ) == DEFAULT_QUANTITY_TYPE
470
470
@test typeof (u " Gyr" ) == DEFAULT_QUANTITY_TYPE
471
471
@test typeof (u " fm" ) == DEFAULT_QUANTITY_TYPE
472
472
@test typeof (u " fm" ^ 2 ) == DEFAULT_QUANTITY_TYPE
473
473
474
- @test_throws LoadError eval (:(u " :x" ))
474
+ @test_throws ArgumentError eval (:(u " :x" ))
475
475
end
476
476
477
477
@testset " Constants" begin
You can’t perform that action at this time.
0 commit comments