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 72d19eb commit 75fa9e0Copy full SHA for 75fa9e0
test/unittests.jl
@@ -205,13 +205,13 @@ end
205
@test adjoint(ustrip(x^2)) ≈ adjoint(x^2) / u"m/s"^2
206
207
# Can create by division as well:
208
- x = 1.0u"km/s" / (1.0 + 0.5im)
+ x = RealQuantity(1.0u"km/s") / (1.0 + 0.5im)
209
@test typeof(x) == Quantity{Complex{Float64}, DEFAULT_DIM_TYPE}
210
@test ustrip(x) ≈ 1000.0 / (1.0 + 0.5im)
211
@test ulength(x) == 1.0
212
@test utime(x) == -1.0
213
214
- x = (1.0 + 0.5im) / (1.0u"km/s")
+ x = (1.0 + 0.5im) / RealQuantity(1.0u"km/s")
215
216
@test ustrip(x) ≈ (1.0 + 0.5im) / 1000.0
217
@test ulength(x) == -1.0
0 commit comments