Skip to content

Commit

Permalink
test: Add unit test code for class 'GridSmokeSolver{2|3}'
Browse files Browse the repository at this point in the history
  • Loading branch information
utilForever committed Jul 27, 2022
1 parent d9f77a6 commit 225634e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Tests/UnitTests/GridSmokeSolver2Tests.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "gtest/gtest.h"

#include <Core/Solver/Grid/GridSmokeSolver2.hpp>

using namespace CubbyFlow;

TEST(GridSmokeSolver2, UpdateEmpty)
{
GridSmokeSolver2 solver;

for (Frame frame; frame.index < 2; ++frame)
{
solver.Update(frame);
}
}
15 changes: 15 additions & 0 deletions Tests/UnitTests/GridSmokeSolver3Tests.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "gtest/gtest.h"

#include <Core/Solver/Grid/GridSmokeSolver3.hpp>

using namespace CubbyFlow;

TEST(GridSmokeSolver3, UpdateEmpty)
{
GridSmokeSolver3 solver;

for (Frame frame; frame.index < 2; ++frame)
{
solver.Update(frame);
}
}

0 comments on commit 225634e

Please sign in to comment.