Skip to content

Commit 0b1b9ae

Browse files
committed
Add tests
1 parent 3d06886 commit 0b1b9ae

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

test/runtests.jl

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,24 @@ end
274274
# Issue #24
275275
nodes_not_agg()
276276

277-
# Issue 26
277+
# Issue #26
278278
test_symmetric_sweep()
279+
280+
# Issue #31
281+
for sz in [10, 5, 2]
282+
a = poisson(sz)
283+
ml = ruge_stuben(a)
284+
@test isempty(ml.levels)
285+
@test size(ml.final_A) == (sz,sz)
286+
@test AMG.operator_complexity(ml) == 1
287+
@test AMG.grid_complexity(ml) == 1
288+
289+
a = poisson(sz)
290+
ml = smoothed_aggregation(a)
291+
@test isempty(ml.levels)
292+
@test size(ml.final_A) == (sz,sz)
293+
@test AMG.operator_complexity(ml) == 1
294+
@test AMG.grid_complexity(ml) == 1
295+
end
296+
279297
end

0 commit comments

Comments
 (0)