Skip to content

Commit e46a689

Browse files
sethaxenhyrodium
andauthored
Fix randomly failing log test on nightly (#116)
* Fix randomly failing log test on nightly * Update test/Quaternion.jl Co-authored-by: Yuto Horikawa <[email protected]> Co-authored-by: Yuto Horikawa <[email protected]>
1 parent 0f57093 commit e46a689

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Quaternion.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,10 @@ end
379379
@testset "log" begin
380380
@test log(zero(QuaternionF64)) === Quaternion(-Inf, 0, 0, 0)
381381
@test log(one(QuaternionF64)) === Quaternion(0.0, 0, 0, 0)
382-
@test log(-one(QuaternionF64)) == Quaternion(0.0, π, 0, 0)
382+
@test log(-one(QuaternionF64)) Quaternion(0, π, 0, 0)
383383
x = rand()
384-
@test log(quat(x)) == quat(log(x))
385-
@test log(quat(-x)) == Quaternion(reim(log(complex(-x)))..., 0, 0)
384+
@test log(quat(x)) quat(log(x))
385+
@test log(quat(-x)) Quaternion(reim(log(complex(-x)))..., 0, 0)
386386
end
387387

388388
@testset "exp" begin

0 commit comments

Comments
 (0)