Skip to content

Commit

Permalink
test_main.m: include checks for p2
Browse files Browse the repository at this point in the history
  • Loading branch information
rogalski committed Dec 14, 2015
1 parent 6b1ee25 commit 032df51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test_main.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@

A = blkdiag(ones(5),ones(5)); A(1,10) = 1; A(10,1) = 1; A(5,6) = 1; A(6,5) = 1;
[p1,p2] = metispart(sparse(A));
assert(all(p1-[1,2,3,4,5] == 0) || all(p1-[6,7,8,9,10] == 0))
e1 = [1,2,3,4,5];
e2 = [6,7,8,9,10];
assert(all(p1-e1 == 0) || all(p1-e2 == 0))
assert(all(p2-e1 == 0) || all(p2-e2 == 0))

0 comments on commit 032df51

Please sign in to comment.