Skip to content

Commit

Permalink
Update libcxx tests
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Nov 4, 2024
1 parent 804b9a7 commit e9a8275
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 9 deletions.
9 changes: 6 additions & 3 deletions test/sources/LibcxxHashMapTester.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@
namespace
{

using namespace libcxx_insert_range_maps_sets;
using namespace libcxx_from_range_unord;

namespace libcxx_test_hash_map
{

class LibcxxHashMapSettings : public momo::HashMapSettings
{
public:
static const momo::CheckMode checkMode = momo::CheckMode::exception;
};

namespace libcxx_test_hash_map
{

LIBCXX_NAMESPACE_STD_BEGIN
template<typename TKey, typename TMapped,
typename THashFunc = std::hash<TKey>,
Expand Down
3 changes: 3 additions & 0 deletions test/sources/LibcxxHashMapTesterOpen8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
namespace
{

using namespace libcxx_insert_range_maps_sets;
using namespace libcxx_from_range_unord;

namespace libcxx_test_hash_map
{

Expand Down
9 changes: 6 additions & 3 deletions test/sources/LibcxxHashMultiMapTester.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,18 @@
namespace
{

namespace libcxx_test_hash_multimap
{

using namespace libcxx_insert_range_maps_sets;
using namespace libcxx_from_range_unord;

class LibcxxHashMultiMapSettings : public momo::HashMultiMapSettings
{
public:
static const momo::CheckMode checkMode = momo::CheckMode::exception;
};

namespace libcxx_test_hash_multimap
{

LIBCXX_NAMESPACE_STD_BEGIN

template<typename TKey, typename TMapped,
Expand Down
3 changes: 3 additions & 0 deletions test/sources/LibcxxHashMultiMapTesterOpen8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
namespace
{

using namespace libcxx_insert_range_maps_sets;
using namespace libcxx_from_range_unord;

namespace libcxx_test_hash_multimap
{

Expand Down
9 changes: 6 additions & 3 deletions test/sources/LibcxxHashSetTester.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@
namespace
{

using namespace libcxx_insert_range_maps_sets;
using namespace libcxx_from_range_unord;

namespace libcxx_test_hash_set
{

class LibcxxHashSetSettings : public momo::HashSetSettings
{
public:
static const momo::CheckMode checkMode = momo::CheckMode::exception;
};

namespace libcxx_test_hash_set
{

LIBCXX_NAMESPACE_STD_BEGIN
template<typename TKey,
typename THashFunc = std::hash<TKey>,
Expand Down
3 changes: 3 additions & 0 deletions test/sources/LibcxxHashSetTesterOpen8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
namespace
{

using namespace libcxx_insert_range_maps_sets;
using namespace libcxx_from_range_unord;

namespace libcxx_test_hash_set
{

Expand Down
8 changes: 8 additions & 0 deletions test/sources/LibcxxTreeMapTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
# include "../../include/momo/stdish/vector.h"
#endif

namespace
{

using namespace libcxx_insert_range_maps_sets;
using namespace libcxx_from_range_assoc;

namespace libcxx_test_tree_map
{

Expand All @@ -43,4 +49,6 @@ LIBCXX_NAMESPACE_STD_END

} // namespace libcxx_test_tree_map

} // namespace

#endif // TEST_LIBCXX_TREE_MAP
8 changes: 8 additions & 0 deletions test/sources/LibcxxTreeMultiMapTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

#include "../../include/momo/stdish/map.h"

namespace
{

using namespace libcxx_insert_range_maps_sets;
using namespace libcxx_from_range_assoc;

namespace libcxx_test_tree_multimap
{

Expand All @@ -39,4 +45,6 @@ LIBCXX_NAMESPACE_STD_END

} // namespace libcxx_test_tree_multimap

} // namespace

#endif // TEST_LIBCXX_TREE_MAP
8 changes: 8 additions & 0 deletions test/sources/LibcxxTreeMultiSetTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

#include "../../include/momo/stdish/set.h"

namespace
{

using namespace libcxx_insert_range_maps_sets;
using namespace libcxx_from_range_assoc;

namespace libcxx_test_tree_multiset
{

Expand All @@ -39,4 +45,6 @@ LIBCXX_NAMESPACE_STD_END

} // namespace libcxx_test_tree_multiset

} // namespace

#endif // TEST_LIBCXX_TREE_SET
8 changes: 8 additions & 0 deletions test/sources/LibcxxTreeSetTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

#include "../../include/momo/stdish/set.h"

namespace
{

using namespace libcxx_insert_range_maps_sets;
using namespace libcxx_from_range_assoc;

namespace libcxx_test_tree_set
{

Expand All @@ -39,4 +45,6 @@ LIBCXX_NAMESPACE_STD_END

} // namespace libcxx_test_tree_set

} // namespace

#endif // TEST_LIBCXX_TREE_SET

0 comments on commit e9a8275

Please sign in to comment.