Mercurial > repos > public > sbplib_julia
diff test/LazyTensors/lazy_tensor_operations_test.jl @ 1299:4c0bc52e170f bugfix/lazytensors
Change to approximate equality in test using floats
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 04 Apr 2023 21:46:06 +0200 |
parents | c94a12327737 |
children | fddd3a906535 |
line wrap: on
line diff
--- a/test/LazyTensors/lazy_tensor_operations_test.jl Tue Apr 04 21:39:53 2023 +0200 +++ b/test/LazyTensors/lazy_tensor_operations_test.jl Tue Apr 04 21:46:06 2023 +0200 @@ -188,7 +188,7 @@ @test a*Ã == Ã*a @test range_size(a*Ã) == range_size(Ã) @test domain_size(a*Ã) == domain_size(Ã) - @test a*Ã*v == a.*A*v + @test a*Ã*v ≈ a.*A*v rtol=1e-14 end