X-Git-Url: http://gitweb.michael.orlitzky.com/?p=octave.git;a=blobdiff_plain;f=run-tests.m;h=1682d18d20acbdf7938ba5d81c68780bd2df3351;hp=1f6d561f00904f5e9852d224d7d117695d5125bc;hb=9fb5a1527f1ea90f9074b6e318791e0cc43e18f7;hpb=6de25e4c4273789fd2f98e309db4ef3f0902b185 diff --git a/run-tests.m b/run-tests.m index 1f6d561..1682d18 100755 --- a/run-tests.m +++ b/run-tests.m @@ -42,3 +42,12 @@ unit_test_equals("2 is not odd", ... unit_test_equals("2 is even", ... true, ... even(2)); + +expected_A = [1, 0, 0, 0, 0; ... + 16, -32, 16, 0, 0; ... + 0, 16, -32, 16, 0; ... + 0, 0, 16, -32, 16; ... + 0, 0, 0, 0, 1]; +unit_test_equals("Homework #1 problem #1 Poisson matrix is correct", ... + true, ... + expected_A == poisson_matrix(4, 0, 1));