Skip to content

Commit

Permalink
Change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhwalters committed Jul 28, 2024
1 parent fc6360c commit b063567
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/modules/word_data_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "word_data.h"

using namespace faker::word;
using namespace faker::word::cstd;
using namespace faker;
using namespace ::testing;

Expand Down Expand Up @@ -72,15 +71,15 @@ TEST_F(WordDataTest, shouldSwapDifferentContainers)
TEST_F(WordDataTest, shouldPartitionEvenOdd)
{
std::vector<int> vec = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
auto it = partition(vec.begin(), vec.end(), [](int n) { return n % 2 == 0; });
auto it = cstd::partition(vec.begin(), vec.end(), [](int n) { return n % 2 == 0; });
ASSERT_TRUE(std::all_of(vec.begin(), it, [](int n) { return n % 2 == 0; }));
ASSERT_TRUE(std::all_of(it, vec.end(), [](int n) { return n % 2 != 0; }));
}

TEST_F(WordDataTest, shouldPartitionGreaterThanFive)
{
std::vector<int> vec = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
auto it = partition(vec.begin(), vec.end(), [](int n) { return n > 5; });
auto it = cstd::partition(vec.begin(), vec.end(), [](int n) { return n > 5; });
ASSERT_TRUE(std::all_of(vec.begin(), it, [](int n) { return n > 5; }));
ASSERT_TRUE(std::all_of(it, vec.end(), [](int n) { return n <= 5; }));
}
Expand Down

0 comments on commit b063567

Please sign in to comment.