Skip to content

Commit 658cf92

Browse files
committed
added tests for mixed R interleaved grid
1 parent 354d1a2 commit 658cf92

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/newgrid/comprehensive_tests.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,13 @@ end
399399
end
400400

401401
@testitem "Additional Constructors" begin
402-
g = DiscretizedGrid{2}((3, 4), (-2, 3), (4, 5); unfoldingscheme=:interleaved)
402+
@show g = DiscretizedGrid{2}((3, 4), (-2, 3), (4, 5); unfoldingscheme=:interleaved)
403+
@test QuanticsGrids.grid_Rs(g) == (3, 4)
404+
@test length(g) == 7
405+
@test last.(only.(QuanticsGrids.grid_indextable(g))) == [1, 1, 2, 2, 3, 3, 4]
406+
403407
g = DiscretizedGrid((3, 4), (-2, 3), (4, 5); unfoldingscheme=:interleaved)
408+
@test QuanticsGrids.grid_Rs(g) == (3, 4)
409+
@test length(g) == 7
410+
@test last.(only.(QuanticsGrids.grid_indextable(g))) == [1, 1, 2, 2, 3, 3, 4]
404411
end

0 commit comments

Comments
 (0)