diff --git a/constantine.nimble b/constantine.nimble index 1799b6c..9480e41 100644 --- a/constantine.nimble +++ b/constantine.nimble @@ -17,50 +17,50 @@ const buildParallel = "test_parallel.txt" const testDesc: seq[tuple[path: string, useGMP: bool]] = @[ # Primitives - ("tests/test_primitives.nim", false), + ("tests/t_primitives.nim", false), # Big ints - ("tests/test_io_bigints.nim", false), - ("tests/test_bigints.nim", false), - ("tests/test_bigints_multimod.nim", false), - ("tests/test_bigints_mod_vs_gmp.nim", true), - ("tests/test_bigints_mul_vs_gmp.nim", true), - ("tests/test_bigints_mul_high_words_vs_gmp.nim", true), + ("tests/t_io_bigints.nim", false), + ("tests/t_bigints.nim", false), + ("tests/t_bigints_multimod.nim", false), + ("tests/t_bigints_mod_vs_gmp.nim", true), + ("tests/t_bigints_mul_vs_gmp.nim", true), + ("tests/t_bigints_mul_high_words_vs_gmp.nim", true), # Field - ("tests/test_io_fields", false), - ("tests/test_finite_fields.nim", false), - ("tests/test_finite_fields_mulsquare.nim", false), - ("tests/test_finite_fields_sqrt.nim", false), - ("tests/test_finite_fields_powinv.nim", false), - ("tests/test_finite_fields_vs_gmp.nim", true), + ("tests/t_io_fields", false), + ("tests/t_finite_fields.nim", false), + ("tests/t_finite_fields_mulsquare.nim", false), + ("tests/t_finite_fields_sqrt.nim", false), + ("tests/t_finite_fields_powinv.nim", false), + ("tests/t_finite_fields_vs_gmp.nim", true), # Precompute - ("tests/test_precomputed", false), + ("tests/t_precomputed", false), # Towers of extension fields - ("tests/test_fp2.nim", false), - ("tests/test_fp2_sqrt.nim", false), - ("tests/test_fp6_bn254_snarks.nim", false), - ("tests/test_fp6_bls12_377.nim", false), - ("tests/test_fp6_bls12_381.nim", false), - ("tests/test_fp12_bn254_snarks.nim", false), - ("tests/test_fp12_bls12_377.nim", false), - ("tests/test_fp12_bls12_381.nim", false), + ("tests/t_fp2.nim", false), + ("tests/t_fp2_sqrt.nim", false), + ("tests/t_fp6_bn254_snarks.nim", false), + ("tests/t_fp6_bls12_377.nim", false), + ("tests/t_fp6_bls12_381.nim", false), + ("tests/t_fp12_bn254_snarks.nim", false), + ("tests/t_fp12_bls12_377.nim", false), + ("tests/t_fp12_bls12_381.nim", false), # Elliptic curve arithmetic G1 - ("tests/test_ec_weierstrass_projective_g1_add_double.nim", false), - ("tests/test_ec_weierstrass_projective_g1_mul_sanity.nim", false), - ("tests/test_ec_weierstrass_projective_g1_mul_distributive.nim", false), - ("tests/test_ec_weierstrass_projective_g1_mul_vs_ref.nim", false), + ("tests/t_ec_wstrass_prj_g1_add_double.nim", false), + ("tests/t_ec_wstrass_prj_g1_mul_sanity.nim", false), + ("tests/t_ec_wstrass_prj_g1_mul_distri.nim", false), + ("tests/t_ec_wstrass_prj_g1_mul_vs_ref.nim", false), # Elliptic curve arithmetic G2 - ("tests/test_ec_weierstrass_projective_g2_add_double_bn254_snarks.nim", false), - ("tests/test_ec_weierstrass_projective_g2_mul_sanity_bn254_snarks.nim", false), - ("tests/test_ec_weierstrass_projective_g2_mul_distributive_bn254_snarks.nim", false), - ("tests/test_ec_weierstrass_projective_g2_mul_vs_ref_bn254_snarks.nim", false), + ("tests/t_ec_wstrass_prj_g2_add_double_bn254_snarks.nim", false), + ("tests/t_ec_wstrass_prj_g2_mul_sanity_bn254_snarks.nim", false), + ("tests/t_ec_wstrass_prj_g2_mul_distri_bn254_snarks.nim", false), + ("tests/t_ec_wstrass_prj_g2_mul_vs_ref_bn254_snarks.nim", false), - ("tests/test_ec_weierstrass_projective_g2_add_double_bls12_381.nim", false), - ("tests/test_ec_weierstrass_projective_g2_mul_sanity_bls12_381.nim", false), - ("tests/test_ec_weierstrass_projective_g2_mul_distributive_bls12_381.nim", false), - ("tests/test_ec_weierstrass_projective_g2_mul_vs_ref_bls12_381.nim", false), + ("tests/t_ec_wstrass_prj_g2_add_double_bls12_381.nim", false), + ("tests/t_ec_wstrass_prj_g2_mul_sanity_bls12_381.nim", false), + ("tests/t_ec_wstrass_prj_g2_mul_distri_bls12_381.nim", false), + ("tests/t_ec_wstrass_prj_g2_mul_vs_ref_bls12_381.nim", false), # Elliptic curve arithmetic vs Sagemath - ("tests/test_ec_sage_bn254.nim", false), - ("tests/test_ec_sage_bls12_381.nim", false) + ("tests/t_ec_sage_bn254.nim", false), + ("tests/t_ec_sage_bls12_381.nim", false) ] # Helper functions diff --git a/tests/test_bigints.nim b/tests/t_bigints.nim similarity index 100% rename from tests/test_bigints.nim rename to tests/t_bigints.nim diff --git a/tests/test_bigints_mod_vs_gmp.nim b/tests/t_bigints_mod_vs_gmp.nim similarity index 100% rename from tests/test_bigints_mod_vs_gmp.nim rename to tests/t_bigints_mod_vs_gmp.nim diff --git a/tests/test_bigints_mul_high_words_vs_gmp.nim b/tests/t_bigints_mul_high_words_vs_gmp.nim similarity index 100% rename from tests/test_bigints_mul_high_words_vs_gmp.nim rename to tests/t_bigints_mul_high_words_vs_gmp.nim diff --git a/tests/test_bigints_mul_vs_gmp.nim b/tests/t_bigints_mul_vs_gmp.nim similarity index 100% rename from tests/test_bigints_mul_vs_gmp.nim rename to tests/t_bigints_mul_vs_gmp.nim diff --git a/tests/test_bigints_multimod.nim b/tests/t_bigints_multimod.nim similarity index 100% rename from tests/test_bigints_multimod.nim rename to tests/t_bigints_multimod.nim diff --git a/tests/test_ec_sage_bls12_381.nim b/tests/t_ec_sage_bls12_381.nim similarity index 100% rename from tests/test_ec_sage_bls12_381.nim rename to tests/t_ec_sage_bls12_381.nim diff --git a/tests/test_ec_sage_bn254.nim b/tests/t_ec_sage_bn254.nim similarity index 100% rename from tests/test_ec_sage_bn254.nim rename to tests/t_ec_sage_bn254.nim diff --git a/tests/test_ec_template.nim b/tests/t_ec_template.nim similarity index 100% rename from tests/test_ec_template.nim rename to tests/t_ec_template.nim diff --git a/tests/test_ec_weierstrass_projective_g1_add_double.nim b/tests/t_ec_wstrass_prj_g1_add_double.nim similarity index 98% rename from tests/test_ec_weierstrass_projective_g1_add_double.nim rename to tests/t_ec_wstrass_prj_g1_add_double.nim index e6cb194..991c42b 100644 --- a/tests/test_ec_weierstrass_projective_g1_add_double.nim +++ b/tests/t_ec_wstrass_prj_g1_add_double.nim @@ -16,7 +16,7 @@ import ../constantine/elliptic/[ec_weierstrass_affine, ec_weierstrass_projective], # Test utilities ../helpers/prng_unsafe, - ./test_ec_template + ./t_ec_template const Iters = 128 diff --git a/tests/test_ec_weierstrass_projective_g1_mul_distributive.nim b/tests/t_ec_wstrass_prj_g1_mul_distri.nim similarity index 98% rename from tests/test_ec_weierstrass_projective_g1_mul_distributive.nim rename to tests/t_ec_wstrass_prj_g1_mul_distri.nim index 24385e6..b53b79f 100644 --- a/tests/test_ec_weierstrass_projective_g1_mul_distributive.nim +++ b/tests/t_ec_wstrass_prj_g1_mul_distri.nim @@ -17,7 +17,7 @@ import # Test utilities ../helpers/prng_unsafe, ./support/ec_reference_scalar_mult, - ./test_ec_template + ./t_ec_template const Iters = 128 diff --git a/tests/test_ec_weierstrass_projective_g1_mul_sanity.nim b/tests/t_ec_wstrass_prj_g1_mul_sanity.nim similarity index 99% rename from tests/test_ec_weierstrass_projective_g1_mul_sanity.nim rename to tests/t_ec_wstrass_prj_g1_mul_sanity.nim index 1450791..1da4861 100644 --- a/tests/test_ec_weierstrass_projective_g1_mul_sanity.nim +++ b/tests/t_ec_wstrass_prj_g1_mul_sanity.nim @@ -17,7 +17,7 @@ import # Test utilities ../helpers/prng_unsafe, ./support/ec_reference_scalar_mult, - ./test_ec_template + ./t_ec_template const Iters = 128 diff --git a/tests/test_ec_weierstrass_projective_g1_mul_vs_ref.nim b/tests/t_ec_wstrass_prj_g1_mul_vs_ref.nim similarity index 98% rename from tests/test_ec_weierstrass_projective_g1_mul_vs_ref.nim rename to tests/t_ec_wstrass_prj_g1_mul_vs_ref.nim index 515accc..96da445 100644 --- a/tests/test_ec_weierstrass_projective_g1_mul_vs_ref.nim +++ b/tests/t_ec_wstrass_prj_g1_mul_vs_ref.nim @@ -17,7 +17,7 @@ import # Test utilities ../helpers/prng_unsafe, ./support/ec_reference_scalar_mult, - ./test_ec_template + ./t_ec_template const Iters = 128 diff --git a/tests/test_ec_weierstrass_projective_g2_add_double_bls12_381.nim b/tests/t_ec_wstrass_prj_g2_add_double_bls12_381.nim similarity index 97% rename from tests/test_ec_weierstrass_projective_g2_add_double_bls12_381.nim rename to tests/t_ec_wstrass_prj_g2_add_double_bls12_381.nim index efda932..9f7ed94 100644 --- a/tests/test_ec_weierstrass_projective_g2_add_double_bls12_381.nim +++ b/tests/t_ec_wstrass_prj_g2_add_double_bls12_381.nim @@ -17,7 +17,7 @@ import ../constantine/elliptic/[ec_weierstrass_affine, ec_weierstrass_projective], # Test utilities ../helpers/prng_unsafe, - ./test_ec_template + ./t_ec_template const Iters = 128 diff --git a/tests/test_ec_weierstrass_projective_g2_add_double_bn254_snarks.nim b/tests/t_ec_wstrass_prj_g2_add_double_bn254_snarks.nim similarity index 97% rename from tests/test_ec_weierstrass_projective_g2_add_double_bn254_snarks.nim rename to tests/t_ec_wstrass_prj_g2_add_double_bn254_snarks.nim index 44807f8..46760bd 100644 --- a/tests/test_ec_weierstrass_projective_g2_add_double_bn254_snarks.nim +++ b/tests/t_ec_wstrass_prj_g2_add_double_bn254_snarks.nim @@ -17,7 +17,7 @@ import ../constantine/elliptic/[ec_weierstrass_affine, ec_weierstrass_projective], # Test utilities ../helpers/prng_unsafe, - ./test_ec_template + ./t_ec_template const Iters = 128 diff --git a/tests/test_ec_weierstrass_projective_g2_mul_distributive_bls12_381.nim b/tests/t_ec_wstrass_prj_g2_mul_distri_bls12_381.nim similarity index 98% rename from tests/test_ec_weierstrass_projective_g2_mul_distributive_bls12_381.nim rename to tests/t_ec_wstrass_prj_g2_mul_distri_bls12_381.nim index 7ebb5d2..0bfcf75 100644 --- a/tests/test_ec_weierstrass_projective_g2_mul_distributive_bls12_381.nim +++ b/tests/t_ec_wstrass_prj_g2_mul_distri_bls12_381.nim @@ -18,7 +18,7 @@ import # Test utilities ../helpers/prng_unsafe, ./support/ec_reference_scalar_mult, - ./test_ec_template + ./t_ec_template const Iters = 128 diff --git a/tests/test_ec_weierstrass_projective_g2_mul_distributive_bn254_snarks.nim b/tests/t_ec_wstrass_prj_g2_mul_distri_bn254_snarks.nim similarity index 98% rename from tests/test_ec_weierstrass_projective_g2_mul_distributive_bn254_snarks.nim rename to tests/t_ec_wstrass_prj_g2_mul_distri_bn254_snarks.nim index fcba086..7b7adaf 100644 --- a/tests/test_ec_weierstrass_projective_g2_mul_distributive_bn254_snarks.nim +++ b/tests/t_ec_wstrass_prj_g2_mul_distri_bn254_snarks.nim @@ -18,7 +18,7 @@ import # Test utilities ../helpers/prng_unsafe, ./support/ec_reference_scalar_mult, - ./test_ec_template + ./t_ec_template const Iters = 128 diff --git a/tests/test_ec_weierstrass_projective_g2_mul_sanity_bls12_381.nim b/tests/t_ec_wstrass_prj_g2_mul_sanity_bls12_381.nim similarity index 99% rename from tests/test_ec_weierstrass_projective_g2_mul_sanity_bls12_381.nim rename to tests/t_ec_wstrass_prj_g2_mul_sanity_bls12_381.nim index d3d847c..fff3415 100644 --- a/tests/test_ec_weierstrass_projective_g2_mul_sanity_bls12_381.nim +++ b/tests/t_ec_wstrass_prj_g2_mul_sanity_bls12_381.nim @@ -18,7 +18,7 @@ import # Test utilities ../helpers/prng_unsafe, ./support/ec_reference_scalar_mult, - ./test_ec_template + ./t_ec_template const Iters = 128 diff --git a/tests/test_ec_weierstrass_projective_g2_mul_sanity_bn254_snarks.nim b/tests/t_ec_wstrass_prj_g2_mul_sanity_bn254_snarks.nim similarity index 99% rename from tests/test_ec_weierstrass_projective_g2_mul_sanity_bn254_snarks.nim rename to tests/t_ec_wstrass_prj_g2_mul_sanity_bn254_snarks.nim index 7825bcc..2eb856e 100644 --- a/tests/test_ec_weierstrass_projective_g2_mul_sanity_bn254_snarks.nim +++ b/tests/t_ec_wstrass_prj_g2_mul_sanity_bn254_snarks.nim @@ -18,7 +18,7 @@ import # Test utilities ../helpers/prng_unsafe, ./support/ec_reference_scalar_mult, - ./test_ec_template + ./t_ec_template const Iters = 128 diff --git a/tests/test_ec_weierstrass_projective_g2_mul_vs_ref_bls12_381.nim b/tests/t_ec_wstrass_prj_g2_mul_vs_ref_bls12_381.nim similarity index 98% rename from tests/test_ec_weierstrass_projective_g2_mul_vs_ref_bls12_381.nim rename to tests/t_ec_wstrass_prj_g2_mul_vs_ref_bls12_381.nim index b5e2516..66a0f67 100644 --- a/tests/test_ec_weierstrass_projective_g2_mul_vs_ref_bls12_381.nim +++ b/tests/t_ec_wstrass_prj_g2_mul_vs_ref_bls12_381.nim @@ -18,7 +18,7 @@ import # Test utilities ../helpers/prng_unsafe, ./support/ec_reference_scalar_mult, - ./test_ec_template + ./t_ec_template const Iters = 128 diff --git a/tests/test_ec_weierstrass_projective_g2_mul_vs_ref_bn254_snarks.nim b/tests/t_ec_wstrass_prj_g2_mul_vs_ref_bn254_snarks.nim similarity index 98% rename from tests/test_ec_weierstrass_projective_g2_mul_vs_ref_bn254_snarks.nim rename to tests/t_ec_wstrass_prj_g2_mul_vs_ref_bn254_snarks.nim index 9a4a9f6..86712c0 100644 --- a/tests/test_ec_weierstrass_projective_g2_mul_vs_ref_bn254_snarks.nim +++ b/tests/t_ec_wstrass_prj_g2_mul_vs_ref_bn254_snarks.nim @@ -18,7 +18,7 @@ import # Test utilities ../helpers/prng_unsafe, ./support/ec_reference_scalar_mult, - ./test_ec_template + ./t_ec_template const Iters = 128 diff --git a/tests/test_finite_fields.nim b/tests/t_finite_fields.nim similarity index 100% rename from tests/test_finite_fields.nim rename to tests/t_finite_fields.nim diff --git a/tests/test_finite_fields.nim.cfg b/tests/t_finite_fields.nim.cfg similarity index 100% rename from tests/test_finite_fields.nim.cfg rename to tests/t_finite_fields.nim.cfg diff --git a/tests/test_finite_fields_mulsquare.nim b/tests/t_finite_fields_mulsquare.nim similarity index 100% rename from tests/test_finite_fields_mulsquare.nim rename to tests/t_finite_fields_mulsquare.nim diff --git a/tests/test_finite_fields_mulsquare.nim.cfg b/tests/t_finite_fields_mulsquare.nim.cfg similarity index 100% rename from tests/test_finite_fields_mulsquare.nim.cfg rename to tests/t_finite_fields_mulsquare.nim.cfg diff --git a/tests/test_finite_fields_powinv.nim b/tests/t_finite_fields_powinv.nim similarity index 100% rename from tests/test_finite_fields_powinv.nim rename to tests/t_finite_fields_powinv.nim diff --git a/tests/test_finite_fields_powinv.nim.cfg b/tests/t_finite_fields_powinv.nim.cfg similarity index 100% rename from tests/test_finite_fields_powinv.nim.cfg rename to tests/t_finite_fields_powinv.nim.cfg diff --git a/tests/test_finite_fields_sqrt.nim b/tests/t_finite_fields_sqrt.nim similarity index 100% rename from tests/test_finite_fields_sqrt.nim rename to tests/t_finite_fields_sqrt.nim diff --git a/tests/test_finite_fields_sqrt.nim.cfg b/tests/t_finite_fields_sqrt.nim.cfg similarity index 100% rename from tests/test_finite_fields_sqrt.nim.cfg rename to tests/t_finite_fields_sqrt.nim.cfg diff --git a/tests/test_finite_fields_vs_gmp.nim b/tests/t_finite_fields_vs_gmp.nim similarity index 100% rename from tests/test_finite_fields_vs_gmp.nim rename to tests/t_finite_fields_vs_gmp.nim diff --git a/tests/test_fp12_bls12_377.nim b/tests/t_fp12_bls12_377.nim similarity index 96% rename from tests/test_fp12_bls12_377.nim rename to tests/t_fp12_bls12_377.nim index a17d7f3..ff8cbbb 100644 --- a/tests/test_fp12_bls12_377.nim +++ b/tests/t_fp12_bls12_377.nim @@ -11,7 +11,7 @@ import ../constantine/towers, ../constantine/config/curves, # Test utilities - ./test_fp_tower_template + ./t_fp_tower_template const TestCurves = [ BLS12_377, diff --git a/tests/test_fp12_bls12_381.nim b/tests/t_fp12_bls12_381.nim similarity index 96% rename from tests/test_fp12_bls12_381.nim rename to tests/t_fp12_bls12_381.nim index 3c294a3..93832e5 100644 --- a/tests/test_fp12_bls12_381.nim +++ b/tests/t_fp12_bls12_381.nim @@ -11,7 +11,7 @@ import ../constantine/towers, ../constantine/config/curves, # Test utilities - ./test_fp_tower_template + ./t_fp_tower_template const TestCurves = [ BLS12_381 diff --git a/tests/test_fp12_bn254_snarks.nim b/tests/t_fp12_bn254_snarks.nim similarity index 96% rename from tests/test_fp12_bn254_snarks.nim rename to tests/t_fp12_bn254_snarks.nim index 1dee22b..f4796c9 100644 --- a/tests/test_fp12_bn254_snarks.nim +++ b/tests/t_fp12_bn254_snarks.nim @@ -11,7 +11,7 @@ import ../constantine/towers, ../constantine/config/curves, # Test utilities - ./test_fp_tower_template + ./t_fp_tower_template const TestCurves = [ BN254_Snarks, diff --git a/tests/test_fp2.nim b/tests/t_fp2.nim similarity index 97% rename from tests/test_fp2.nim rename to tests/t_fp2.nim index d83c5c6..51cf64b 100644 --- a/tests/test_fp2.nim +++ b/tests/t_fp2.nim @@ -11,7 +11,7 @@ import ../constantine/towers, ../constantine/config/curves, # Test utilities - ./test_fp_tower_template + ./t_fp_tower_template const TestCurves = [ # BN254_Nogami diff --git a/tests/test_fp2_sqrt.nim b/tests/t_fp2_sqrt.nim similarity index 100% rename from tests/test_fp2_sqrt.nim rename to tests/t_fp2_sqrt.nim diff --git a/tests/test_fp6_bls12_377.nim b/tests/t_fp6_bls12_377.nim similarity index 96% rename from tests/test_fp6_bls12_377.nim rename to tests/t_fp6_bls12_377.nim index 9c37563..eab9547 100644 --- a/tests/test_fp6_bls12_377.nim +++ b/tests/t_fp6_bls12_377.nim @@ -11,7 +11,7 @@ import ../constantine/towers, ../constantine/config/curves, # Test utilities - ./test_fp_tower_template + ./t_fp_tower_template const TestCurves = [ BLS12_377, diff --git a/tests/test_fp6_bls12_381.nim b/tests/t_fp6_bls12_381.nim similarity index 96% rename from tests/test_fp6_bls12_381.nim rename to tests/t_fp6_bls12_381.nim index 26feae0..60738a6 100644 --- a/tests/test_fp6_bls12_381.nim +++ b/tests/t_fp6_bls12_381.nim @@ -11,7 +11,7 @@ import ../constantine/towers, ../constantine/config/curves, # Test utilities - ./test_fp_tower_template + ./t_fp_tower_template const TestCurves = [ BLS12_381 diff --git a/tests/test_fp6_bn254_snarks.nim b/tests/t_fp6_bn254_snarks.nim similarity index 96% rename from tests/test_fp6_bn254_snarks.nim rename to tests/t_fp6_bn254_snarks.nim index 863f685..104ebea 100644 --- a/tests/test_fp6_bn254_snarks.nim +++ b/tests/t_fp6_bn254_snarks.nim @@ -11,7 +11,7 @@ import ../constantine/towers, ../constantine/config/curves, # Test utilities - ./test_fp_tower_template + ./t_fp_tower_template const TestCurves = [ BN254_Snarks, diff --git a/tests/test_fp_tower_template.nim b/tests/t_fp_tower_template.nim similarity index 100% rename from tests/test_fp_tower_template.nim rename to tests/t_fp_tower_template.nim diff --git a/tests/test_io_bigints.nim b/tests/t_io_bigints.nim similarity index 100% rename from tests/test_io_bigints.nim rename to tests/t_io_bigints.nim diff --git a/tests/test_io_fields.nim b/tests/t_io_fields.nim similarity index 100% rename from tests/test_io_fields.nim rename to tests/t_io_fields.nim diff --git a/tests/test_io_fields.nim.cfg b/tests/t_io_fields.nim.cfg similarity index 100% rename from tests/test_io_fields.nim.cfg rename to tests/t_io_fields.nim.cfg diff --git a/tests/test_precomputed.nim b/tests/t_precomputed.nim similarity index 100% rename from tests/test_precomputed.nim rename to tests/t_precomputed.nim diff --git a/tests/test_primitives.nim b/tests/t_primitives.nim similarity index 100% rename from tests/test_primitives.nim rename to tests/t_primitives.nim