Skip to content

Commit

Permalink
Tests: update unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
YuLiu98 committed Aug 12, 2024
1 parent 9c512d4 commit 9ce93b5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/module_md/test/fire_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class FIREtest : public testing::Test

TEST_F(FIREtest, Setup)
{
EXPECT_NEAR(mdrun->t_current * ModuleBase::Hartree_to_K, 299.99999999999665, doublethreshold);
EXPECT_NEAR(mdrun->t_current * ModuleBase::Hartree_to_K, 299.99999999999994, doublethreshold);
EXPECT_NEAR(mdrun->stress(0, 0), 6.0100555286436806e-06, doublethreshold);
EXPECT_NEAR(mdrun->stress(0, 1), -1.4746713013791574e-06, doublethreshold);
EXPECT_NEAR(mdrun->stress(0, 2), 1.5039983732220751e-06, doublethreshold);
Expand Down
2 changes: 1 addition & 1 deletion source/module_md/test/langevin_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Langevin_test : public testing::Test

TEST_F(Langevin_test, setup)
{
EXPECT_NEAR(mdrun->t_current * ModuleBase::Hartree_to_K, 299.99999999999665, doublethreshold);
EXPECT_NEAR(mdrun->t_current * ModuleBase::Hartree_to_K, 299.99999999999994, doublethreshold);
EXPECT_NEAR(mdrun->stress(0, 0), 6.0100555286436806e-06, doublethreshold);
EXPECT_NEAR(mdrun->stress(0, 1), -1.4746713013791574e-06, doublethreshold);
EXPECT_NEAR(mdrun->stress(0, 2), 1.5039983732220751e-06, doublethreshold);
Expand Down
2 changes: 1 addition & 1 deletion source/module_md/test/nhchain_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class NHC_test : public testing::Test

TEST_F(NHC_test, setup)
{
EXPECT_NEAR(mdrun->t_current * ModuleBase::Hartree_to_K, 299.99999999999665, doublethreshold);
EXPECT_NEAR(mdrun->t_current * ModuleBase::Hartree_to_K, 299.99999999999994, doublethreshold);
EXPECT_NEAR(mdrun->stress(0, 0), 6.0100555286436806e-06, doublethreshold);
EXPECT_NEAR(mdrun->stress(0, 1), -1.4746713013791574e-06, doublethreshold);
EXPECT_NEAR(mdrun->stress(0, 2), 1.5039983732220751e-06, doublethreshold);
Expand Down
2 changes: 1 addition & 1 deletion source/module_md/test/verlet_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Verlet_test : public testing::Test

TEST_F(Verlet_test, setup)
{
EXPECT_NEAR(mdrun->t_current * ModuleBase::Hartree_to_K, 299.99999999999665, doublethreshold);
EXPECT_NEAR(mdrun->t_current * ModuleBase::Hartree_to_K, 299.99999999999994, doublethreshold);
EXPECT_NEAR(mdrun->stress(0, 0), 6.0100555286436806e-06, doublethreshold);
EXPECT_NEAR(mdrun->stress(0, 1), -1.4746713013791574e-06, doublethreshold);
EXPECT_NEAR(mdrun->stress(0, 2), 1.5039983732220751e-06, doublethreshold);
Expand Down

0 comments on commit 9ce93b5

Please sign in to comment.