FreeCAD WebAssembly development snapshot
Some checks failed
FreeCAD master CI / Prepare (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Stale Issues / stale (push) Has been cancelled
Some checks failed
FreeCAD master CI / Prepare (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Stale Issues / stale (push) Has been cancelled
This commit is contained in:
42
tests/src/Mod/Mesh/App/MeshFeature.cpp
Normal file
42
tests/src/Mod/Mesh/App/MeshFeature.cpp
Normal file
@@ -0,0 +1,42 @@
|
||||
// SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include <src/App/InitApplication.h>
|
||||
#include <Mod/Mesh/App/MeshFeature.h>
|
||||
|
||||
class MeshFeatureTest: public ::testing::Test
|
||||
{
|
||||
protected:
|
||||
static void SetUpTestSuite()
|
||||
{
|
||||
tests::initApplication();
|
||||
}
|
||||
|
||||
void SetUp() override
|
||||
{}
|
||||
|
||||
void TearDown() override
|
||||
{}
|
||||
};
|
||||
|
||||
// NOLINTBEGIN(cppcoreguidelines-*,readability-*)
|
||||
TEST_F(MeshFeatureTest, getElementTypes)
|
||||
{
|
||||
Mesh::Feature mf;
|
||||
std::vector<const char*> types = mf.getElementTypes();
|
||||
|
||||
EXPECT_EQ(types.size(), 2);
|
||||
EXPECT_STREQ(types[0], "Mesh");
|
||||
EXPECT_STREQ(types[1], "Segment");
|
||||
}
|
||||
|
||||
TEST_F(MeshFeatureTest, getComplexElementTypes)
|
||||
{
|
||||
Mesh::MeshObject mf;
|
||||
std::vector<const char*> types = mf.getElementTypes();
|
||||
|
||||
EXPECT_EQ(types.size(), 2);
|
||||
EXPECT_STREQ(types[0], "Mesh");
|
||||
EXPECT_STREQ(types[1], "Segment");
|
||||
}
|
||||
// NOLINTEND(cppcoreguidelines-*,readability-*)
|
||||
Reference in New Issue
Block a user