Mercurial > repos > public > sbplib_julia
diff LazyTensors/test/runtests.jl @ 203:19e579a5031f boundary_conditions
Add (/) operation for LazyArrays and enable corresponding broken tests.
| author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
|---|---|
| date | Mon, 24 Jun 2019 10:51:39 +0200 |
| parents | 6b7019f2cd41 |
| children | 70e1f3401d82 |
line wrap: on
line diff
--- a/LazyTensors/test/runtests.jl Mon Jun 24 09:21:03 2019 +0200 +++ b/LazyTensors/test/runtests.jl Mon Jun 24 10:51:39 2019 +0200 @@ -98,13 +98,13 @@ @test isa(v2 - v1, LazyArray) @test isa(v1 * v2, LazyArray) @test isa(v2 * v1, LazyArray) - @test_broken isa(v1 / v2, LazyArray) - @test_broken isa(v2 / v1, LazyArray) + @test isa(v1 / v2, LazyArray) + @test isa(v2 / v1, LazyArray) for i ∈ eachindex(v2) @test (v1 + v2)[i] == (v2 + v1)[i] == r_add[i] @test (v1 - v2)[i] == -(v2 - v1)[i] == r_sub[i] @test (v1 * v2)[i] == (v2 * v1)[i] == r_times[i] - @test_broken (v1 / v2)[i] == 1/((v2 / v1)[i]) == r_div[i] + @test (v1 / v2)[i] == 1/((v2 / v1)[i]) == r_div[i] end @test_throws BoundsError (v1 + v2)[4] v2 = [1., 2, 3, 4]
