From fb070be0d34c28aae55d8b808c7e21f5fc377724 Mon Sep 17 00:00:00 2001 From: Whiteknight Date: Fri, 12 Mar 2010 22:37:41 -0500 Subject: [PATCH] fixes/updates for complexmatrix2d.t --- t/pmc/complexmatrix2d.t | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/t/pmc/complexmatrix2d.t b/t/pmc/complexmatrix2d.t index bd957a7..5bd597a 100644 --- a/t/pmc/complexmatrix2d.t +++ b/t/pmc/complexmatrix2d.t @@ -63,13 +63,10 @@ sub matrix2x2str($aa, $ab, $ba, $bb) { } method test_create_complexmatrix2d() { - try { + assert_throws_nothing("Cannot create ComplexMatrix2D", { my $c := Parrot::new("ComplexMatrix2D"); assert_not_null($c, "Could not create a ComplexMatrix2D"); - CATCH { - fail($!); - } - } + }); } method test_sub_op_does_matrix() { @@ -184,4 +181,3 @@ method test_method_iterate_function_inplace() { assert_equal($m, $n, "Cannot iterate function in place"); } -