From 187875e9c72300bd1e493057d90cc8c003c9124f Mon Sep 17 00:00:00 2001 From: hasufell Date: Sat, 28 Jun 2014 01:27:42 +0200 Subject: [PATCH] TESTS: properly test for zero-polynomial --- tests/ntru_poly_cunit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ntru_poly_cunit.c b/tests/ntru_poly_cunit.c index 5313abc..ab4e269 100644 --- a/tests/ntru_poly_cunit.c +++ b/tests/ntru_poly_cunit.c @@ -71,5 +71,5 @@ void test_poly_new2(void) poly_new(new_poly, NULL, 0); - CU_ASSERT_PTR_NULL(fmpz_poly_get_coeff_ptr(new_poly, 0)); + CU_ASSERT_EQUAL(fmpz_poly_is_zero(new_poly), 1); }