diff options
| author | J08nY | 2018-03-03 01:17:16 +0100 |
|---|---|---|
| committer | J08nY | 2018-03-03 01:17:16 +0100 |
| commit | 1f0f281a8a0ee8d4114a7f1df6c762f20e935746 (patch) | |
| tree | 9afd927280f2da4dcf9fda9ce3a9c24ed135ff8c /test/src/math | |
| parent | ac60f78a253efde94cab36264b0555b0691fdd8a (diff) | |
| download | ecgen-1f0f281a8a0ee8d4114a7f1df6c762f20e935746.tar.gz ecgen-1f0f281a8a0ee8d4114a7f1df6c762f20e935746.tar.zst ecgen-1f0f281a8a0ee8d4114a7f1df6c762f20e935746.zip | |
Refactor point generation tests.
Diffstat (limited to 'test/src/math')
| -rw-r--r-- | test/src/math/test_koblitz.c | 9 |
1 files changed, 3 insertions, 6 deletions
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) { |
