Skip to content

Commit

Permalink
all tests that are compilable now are added: 714406 assertions in 10 …
Browse files Browse the repository at this point in the history
…test cases
  • Loading branch information
favorov committed Oct 4, 2024
1 parent ce84594 commit 6cdb723
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
4 changes: 4 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -3368,6 +3368,10 @@ if test "x$cpp_tests_disable" != "xyes" ; then
GAPS_CPP_FLAGS+=" -DGAPS_CPP_UNIT_TESTS "
GAPS_SOURCE_FILES+=" cpp_tests/testVector.o"
GAPS_SOURCE_FILES+=" cpp_tests/testSparseVector.o"
GAPS_SOURCE_FILES+=" cpp_tests/testHashSets.o"
GAPS_SOURCE_FILES+=" cpp_tests/testHybridMatrix.o"
GAPS_SOURCE_FILES+=" cpp_tests/testHybridVector.o"
GAPS_SOURCE_FILES+=" cpp_tests/testSparseIterator.o"
# GAPS_SOURCE_FILES+=" cpp_tests/testConcurrentAtomicDomain.o"
fi
# commented files in the if above are to be reviwed
Expand Down
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ if test "x$cpp_tests_disable" != "xyes" ; then
GAPS_CPP_FLAGS+=" -DGAPS_CPP_UNIT_TESTS "
GAPS_SOURCE_FILES+=" cpp_tests/testVector.o"
GAPS_SOURCE_FILES+=" cpp_tests/testSparseVector.o"
GAPS_SOURCE_FILES+=" cpp_tests/testHashSets.o"
GAPS_SOURCE_FILES+=" cpp_tests/testHybridMatrix.o"
GAPS_SOURCE_FILES+=" cpp_tests/testHybridVector.o"
GAPS_SOURCE_FILES+=" cpp_tests/testSparseIterator.o"
# GAPS_SOURCE_FILES+=" cpp_tests/testConcurrentAtomicDomain.o"
fi
# commented files in the if above are to be reviwed
Expand Down
6 changes: 3 additions & 3 deletions src/cpp_tests/testHashSets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "../data_structures/HashSets.h"
#include "../math/Random.h"

TEST_CASE("Test HashSets.h - FixedHashSetU32")
TEST_CASE("Test HashSets.h - FixedHashSetU32","[hashset][U32]")
{
GapsRandomState randState(123);

Expand All @@ -27,7 +27,7 @@ TEST_CASE("Test HashSets.h - FixedHashSetU32")
}
}

TEST_CASE("Test HashSets.h - SmallHashSetU64")
TEST_CASE("Test HashSets.h - SmallHashSetU64","[hashset][U64]")
{
GapsRandomState randState(123);

Expand All @@ -51,7 +51,7 @@ TEST_CASE("Test HashSets.h - SmallHashSetU64")
}
}

TEST_CASE("Test HashSets.h - SmallPairedHashSetU64")
TEST_CASE("Test HashSets.h - SmallPairedHashSetU64","[hashset][pairedU64]")
{
SmallPairedHashSetU64 hSet;
REQUIRE(hSet.isEmpty());
Expand Down
2 changes: 1 addition & 1 deletion src/cpp_tests/testHybridMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "../math/VectorMath.h"
#include "../math/MatrixMath.h"

TEST_CASE("Test HybridMatrix.h")
TEST_CASE("Test HybridMatrix.h","[hybridmatrix]")
{
HybridMatrix mat(100, 250);
REQUIRE(mat.nRow() == 100);
Expand Down
2 changes: 1 addition & 1 deletion src/cpp_tests/testHybridVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "../math/Math.h"
#include "../math/VectorMath.h"

TEST_CASE("Test HybridVector.h")
TEST_CASE("Test HybridVector.h","[hybridvector]")
{
GapsRandomState randState(123);

Expand Down
6 changes: 3 additions & 3 deletions src/cpp_tests/testSparseIterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include <bitset>

TEST_CASE("Test SparseIterator.h - One Dimensional")
TEST_CASE("Test SparseIterator.h - One Dimensional","[sparseiterator][1D]")
{
#if 0
SECTION("Simple Case")
Expand Down Expand Up @@ -63,7 +63,7 @@ TEST_CASE("Test SparseIterator.h - One Dimensional")
}
}

TEST_CASE("Test SparseIterator.h - Two Dimensional")
TEST_CASE("Test SparseIterator.h - Two Dimensional","[sparseiterator][2D]")
{
#if 0
SECTION("Simple Case")
Expand Down Expand Up @@ -241,7 +241,7 @@ static float tripleProduct(const Vector &v1, const Vector &v2, const Vector &v3)
return prod;
}

TEST_CASE("Test SparseIterator.h - Three Dimensional")
TEST_CASE("Test SparseIterator.h - Three Dimensional","[sparseiterator][3D]")
{
#if 0
SECTION("Simple Case")
Expand Down
2 changes: 1 addition & 1 deletion src/cpp_tests/testSparseVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "../math/Math.h"
#include "../math/VectorMath.h"

TEST_CASE("Test SparseVector","[sparse]")
TEST_CASE("Test SparseVector","[sparsevector]")
{
GapsRandomState randState(123);

Expand Down

0 comments on commit 6cdb723

Please sign in to comment.