Skip to content

Commit

Permalink
Update FourQ_test.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojian-ant authored May 11, 2024
1 parent bd424e1 commit 18538d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions yacl/crypto/ecc/FourQlib/FourQ_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class FourQTest : public ::testing::Test {
EcGroupFactory::Instance().Create("FourQ", ArgLib = "FourQlib");
};

TEST_F(FourQTest, DISABLED_CopyPointWorks) {
TEST_F(FourQTest, CopyPointWorks) {
// Convert function
f2elm_t f;
MPIntToF2elm(123456789_mp, f);
Expand All @@ -67,7 +67,7 @@ TEST_F(FourQTest, DISABLED_CopyPointWorks) {
EXPECT_TRUE(ec_->PointEqual(ecp1, ec_->CopyPoint(ap)));
}

TEST_F(FourQTest, DISABLED_AffinePointWorks) {
TEST_F(FourQTest, AffinePointWorks) {
ASSERT_EQ(ec_->GetLibraryName(), "FourQlib");

AffinePoint ap_g{
Expand All @@ -88,7 +88,7 @@ TEST_F(FourQTest, DISABLED_AffinePointWorks) {
EXPECT_TRUE(ec_->PointEqual(ec_->CopyPoint(any_ap), any_p));
}

TEST_F(FourQTest, DISABLED_InfWorks) {
TEST_F(FourQTest, InfWorks) {
auto g = ec_->GetGenerator();
EXPECT_TRUE(ec_->IsInCurveGroup(g));

Expand All @@ -109,7 +109,7 @@ TEST_F(FourQTest, DISABLED_InfWorks) {
EXPECT_TRUE(ec_->PointEqual(inf, inf2));
}

TEST_F(FourQTest, DISABLED_NegateWorks) {
TEST_F(FourQTest, NegateWorks) {
// simple works
auto g = ec_->MulBase(1_mp);
EXPECT_TRUE(ec_->PointEqual(g, ec_->GetGenerator()));
Expand All @@ -130,4 +130,4 @@ TEST_F(FourQTest, DISABLED_NegateWorks) {
ec_->Negate(ec_->MulBase(1000_mp))));
}

} // namespace yacl::crypto::FourQ::test
} // namespace yacl::crypto::FourQ::test

0 comments on commit 18538d7

Please sign in to comment.