refactor(serif): updated tests to reflect new serif namespaces
This commit is contained in:
@@ -19,16 +19,16 @@ double ComputeMeshVolume(mfem::Mesh &mesh)
|
||||
class meshIOTest : public ::testing::Test {};
|
||||
|
||||
TEST_F(meshIOTest, DefaultConstructor) {
|
||||
EXPECT_NO_THROW(MeshIO meshIO(EXAMPLE_FILENAME));
|
||||
EXPECT_NO_THROW(serif::mesh::MeshIO meshIO(EXAMPLE_FILENAME));
|
||||
}
|
||||
|
||||
TEST_F(meshIOTest, IsLoaded) {
|
||||
MeshIO meshIO(EXAMPLE_FILENAME);
|
||||
serif::mesh::MeshIO meshIO(EXAMPLE_FILENAME);
|
||||
EXPECT_EQ(meshIO.IsLoaded(), true);
|
||||
}
|
||||
|
||||
TEST_F(meshIOTest, GetMesh) {
|
||||
MeshIO meshIO(EXAMPLE_FILENAME);
|
||||
serif::mesh::MeshIO meshIO(EXAMPLE_FILENAME);
|
||||
mfem::Mesh& mesh = meshIO.GetMesh();
|
||||
EXPECT_EQ(mesh.GetNE(), 18351);
|
||||
EXPECT_EQ(mesh.GetNV(), 3768);
|
||||
@@ -37,7 +37,7 @@ TEST_F(meshIOTest, GetMesh) {
|
||||
}
|
||||
|
||||
TEST_F(meshIOTest, LinearRescale) {
|
||||
MeshIO meshIO(EXAMPLE_FILENAME, 5);
|
||||
serif::mesh::MeshIO meshIO(EXAMPLE_FILENAME, 5);
|
||||
mfem::Mesh& mesh = meshIO.GetMesh();
|
||||
double volume = ComputeMeshVolume(mesh);
|
||||
EXPECT_DOUBLE_EQ(volume, 520.06455669116463);
|
||||
|
||||
Reference in New Issue
Block a user