From 1f0f281a8a0ee8d4114a7f1df6c762f20e935746 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sat, 3 Mar 2018 01:17:16 +0100 Subject: Refactor point generation tests. --- test/src/math/test_koblitz.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'test/src/math') diff --git a/test/src/math/test_koblitz.c b/test/src/math/test_koblitz.c index 03e411c..811edc3 100644 --- a/test/src/math/test_koblitz.c +++ b/test/src/math/test_koblitz.c @@ -11,15 +11,12 @@ TestSuite(koblitz, .init = default_setup, .fini = default_teardown); Test(koblitz, test_koblitz_is_curve) { curve_t curve = { - .field = stoi(23), - .a = mkintmodu(3, 23), - .b = mkintmodu(2, 23) - }; + .field = stoi(23), .a = mkintmodu(3, 23), .b = mkintmodu(2, 23)}; - cr_assert_not(koblitz_is_curve(&curve),); + cr_assert_not(koblitz_is_curve(&curve), ); curve.a = mkintmodu(1, 23); curve.b = mkintmodu(1, 23); - cr_assert(koblitz_is_curve(&curve),); + cr_assert(koblitz_is_curve(&curve), ); } Test(koblitz, test_koblitz_find) { -- cgit v1.2.3-70-g09d2