Skip to content

Commit 75fa9e0

Browse files
committed
Fix coverage
1 parent 72d19eb commit 75fa9e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unittests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,13 @@ end
205205
@test adjoint(ustrip(x^2)) adjoint(x^2) / u"m/s"^2
206206

207207
# Can create by division as well:
208-
x = 1.0u"km/s" / (1.0 + 0.5im)
208+
x = RealQuantity(1.0u"km/s") / (1.0 + 0.5im)
209209
@test typeof(x) == Quantity{Complex{Float64}, DEFAULT_DIM_TYPE}
210210
@test ustrip(x) 1000.0 / (1.0 + 0.5im)
211211
@test ulength(x) == 1.0
212212
@test utime(x) == -1.0
213213

214-
x = (1.0 + 0.5im) / (1.0u"km/s")
214+
x = (1.0 + 0.5im) / RealQuantity(1.0u"km/s")
215215
@test typeof(x) == Quantity{Complex{Float64}, DEFAULT_DIM_TYPE}
216216
@test ustrip(x) (1.0 + 0.5im) / 1000.0
217217
@test ulength(x) == -1.0

0 commit comments

Comments
 (0)