We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef77887 commit 0bcc134Copy full SHA for 0bcc134
test/unittests.jl
@@ -580,8 +580,10 @@ end
580
581
# Test conversion
582
@test typeof(SymbolicDimensions{Rational{Int}}(dimension(us"km/s"))) == SymbolicDimensions{Rational{Int}}
583
- @test convert(Quantity{Float64,SymbolicDimensions}, u"kg") == us"1kg"
584
- @test convert(Quantity{Float64,Dimensions}, us"3.5kg/s") == u"3.5kg/s"
+ @test convert(Quantity{Float64,SymbolicDimensions}, u"kg") == 1.0us"kg"
+ @test convert(Quantity{Float64,SymbolicDimensions}, u"cm") == 1e-2us"m"
585
+ @test convert(Quantity{Float64,Dimensions}, 3.5us"kg/s") == 3.5u"kg/s"
586
+ @test convert(Quantity{Float64,Dimensions}, 3.5us"Constants.pc") == 3.5u"Constants.pc"
587
588
# Helpful error if symbol not found:
589
sym5 = dimension(us"km/s")
0 commit comments