Mercurial > repos > public > sbplib_julia
diff DiffOps/test/runtests.jl @ 285:e21dcda55163 boundary_conditions
Add type representing an unknown dimension in the domain of tensormappings
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 19 Jun 2020 12:20:31 +0200 |
parents | 0b8e041a1873 |
children |
line wrap: on
line diff
--- a/DiffOps/test/runtests.jl Thu Jun 18 22:07:10 2020 +0200 +++ b/DiffOps/test/runtests.jl Fri Jun 19 12:20:31 2020 +0200 @@ -129,10 +129,10 @@ G_n = zeros(Float64, (4,5)) G_n[:,5] = g_x - @test size(e_w*g_y) === (missing,5) - @test size(e_e*g_y) === (missing,5) - @test size(e_s*g_x) === (4,missing) - @test size(e_n*g_x) === (4,missing) + @test size(e_w*g_y) == (UnknownDim,5) + @test size(e_e*g_y) == (UnknownDim,5) + @test size(e_s*g_x) == (4,UnknownDim) + @test size(e_n*g_x) == (4,UnknownDim) # These tests should be moved to where they are possible (i.e we know what the grid should be) @test_broken collect(e_w*g_y) == G_w @@ -206,10 +206,10 @@ G_n = prod_matrix(g_x, d_y_u) - @test size(d_w*g_y) === (missing,6) - @test size(d_e*g_y) === (missing,6) - @test size(d_s*g_x) === (5,missing) - @test size(d_n*g_x) === (5,missing) + @test size(d_w*g_y) == (UnknownDim,6) + @test size(d_e*g_y) == (UnknownDim,6) + @test size(d_s*g_x) == (5,UnknownDim) + @test size(d_n*g_x) == (5,UnknownDim) # These tests should be moved to where they are possible (i.e we know what the grid should be) @test_broken collect(d_w*g_y) ≈ G_w