diff --git a/native/tests/seal/encryptionparams.cpp b/native/tests/seal/encryptionparams.cpp index c953439e..5737bee2 100644 --- a/native/tests/seal/encryptionparams.cpp +++ b/native/tests/seal/encryptionparams.cpp @@ -28,9 +28,9 @@ namespace SEALTest ASSERT_TRUE(parms.coeff_modulus()[0] == 2); ASSERT_TRUE(parms.coeff_modulus()[1] == 3); if (scheme == scheme_type::BFV) - ASSERT_TRUE(parms.plain_modulus() == 2); + ASSERT_TRUE(parms.plain_modulus().value() == 2); else if (scheme == scheme_type::CKKS) - ASSERT_TRUE(parms.plain_modulus() == NULL); + ASSERT_TRUE(parms.plain_modulus().value() == 0); ASSERT_TRUE(parms.poly_modulus_degree() == 2); ASSERT_TRUE(parms.random_generator() == UniformRandomGeneratorFactory::default_factory()); @@ -49,9 +49,9 @@ namespace SEALTest ASSERT_TRUE(parms.coeff_modulus()[1] == DefaultParams::small_mods_40bit(0)); ASSERT_TRUE(parms.coeff_modulus()[2] == DefaultParams::small_mods_50bit(0)); if (scheme == scheme_type::BFV) - ASSERT_TRUE(parms.plain_modulus() == 2); + ASSERT_TRUE(parms.plain_modulus().value() == 2); else if (scheme == scheme_type::CKKS) - ASSERT_TRUE(parms.plain_modulus() == NULL); + ASSERT_TRUE(parms.plain_modulus().value() == 0); ASSERT_TRUE(parms.poly_modulus_degree() == 128); ASSERT_TRUE(parms.random_generator() == UniformRandomGeneratorFactory::default_factory()); }; @@ -155,4 +155,4 @@ namespace SEALTest ASSERT_TRUE(parms.poly_modulus_degree() == parms2.poly_modulus_degree()); ASSERT_TRUE(parms == parms2); } -} \ No newline at end of file +}