Skip to content

Commit

Permalink
Fixed a few typos in namespaces for sca
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinlan authored and Quinlan committed Dec 11, 2023
1 parent 4cb0f60 commit de6a4b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tst/lesson_7_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ TEST(lesson_7, map) {
const std::forward_list<int> fl{7,8,9};

{
auto out = sc::map(v, [](int a, int b, int c){ return a+b+c; }, v, l, fl);
auto out = sca::map(v, [](int a, int b, int c){ return a+b+c; }, v, l, fl);
auto is_same = std::is_same<std::vector<int>, decltype(out)>::value;
EXPECT_TRUE(is_same);
EXPECT_EQ(12, out[0]);
Expand Down Expand Up @@ -44,7 +44,7 @@ TEST(lesson_7, map) {
return sum;
};

auto out = sc::map(add_and_reset, cpv, cpl, cpfl);
auto out = sca::map(add_and_reset, cpv, cpl, cpfl);

EXPECT_EQ(12, out[0]);
EXPECT_EQ(15, out[1]);
Expand Down Expand Up @@ -77,7 +77,7 @@ TEST(lesson_7, fold) {
const std::forward_list<int> fl{7,8,9};

{
auto out = sc::fold(sum, 0, v, l, fl);
auto out = sca::fold(sum, 0, v, l, fl);
auto is_same = std::is_same<int, decltype(out)>::value;
EXPECT_TRUE(is_same);
EXPECT_EQ(45, out);
Expand All @@ -91,7 +91,7 @@ TEST(lesson_7, fold) {
return cur + ve + fle;
};

auto out = sc::fold(concatenate, std::string(""), v, fl);
auto out = sca::fold(concatenate, std::string(""), v, fl);
auto is_same = std::is_same<std::string, decltype(out)>::value;
EXPECT_TRUE(is_same);
EXPECT_EQ("I am a stick!", out);
Expand Down

0 comments on commit de6a4b8

Please sign in to comment.