-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* @file SPHTestSuite.cpp | ||
* @author Anton Artiukh | ||
* @date Created Jan 25, 2025 | ||
**/ | ||
|
||
#include "SPHTestSuite.h" | ||
|
||
#include "SPH.h" | ||
|
||
#include <gtest/gtest.h> | ||
|
||
namespace SPHSDK | ||
{ | ||
namespace TestEnvironment | ||
{ | ||
|
||
void SPHTestSuite::runSPH() | ||
{ | ||
SPHSDK::SPH sph; | ||
|
||
sph.run(); | ||
|
||
EXPECT_EQ(Config::ParticlesNumber, sph.particles.size()); | ||
} | ||
|
||
} // namespace TestEnvironment | ||
} // namespace SPHSDK | ||
|
||
using namespace SPHSDK::TestEnvironment; | ||
|
||
TEST(SPHTestSuite, runSPH) | ||
{ | ||
SPHTestSuite::runSPH(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* @file SPHTestSuite.h | ||
* @author Anton Artiukh | ||
* @date Created Jan 25, 2025 | ||
**/ | ||
|
||
#ifndef SPH_TEST_SUITE_H_26192C2023784EE0B4976A48A1A8772B | ||
#define SPH_TEST_SUITE_H_26192C2023784EE0B4976A48A1A8772B | ||
|
||
namespace SPHSDK | ||
{ | ||
|
||
namespace TestEnvironment | ||
{ | ||
|
||
class SPHTestSuite | ||
{ | ||
public: | ||
static void runSPH(); | ||
}; | ||
|
||
} // namespace TestEnvironment | ||
} // namespace SPHSDK | ||
|
||
#endif // SPH_TEST_SUITE_H_26192C2023784EE0B4976A48A1A8772B |