From: Michael Orlitzky Date: Mon, 17 Dec 2012 15:29:59 +0000 (-0500) Subject: Update the poisson_matrix test with negated values. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=4517c1d860795cc0c40c2e12ce266d7a4bdfec16;p=octave.git Update the poisson_matrix test with negated values. --- diff --git a/run-tests.m b/run-tests.m index 2ff59a3..2ad4c24 100755 --- a/run-tests.m +++ b/run-tests.m @@ -43,11 +43,11 @@ 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]; +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));