This commit is contained in:
Erik Frojdh
2019-01-09 16:22:14 +01:00
parent feaa276284
commit 93ec5f5ef7
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <vector>
#include <string> #include <string>
#include <vector>
namespace sls { namespace sls {

View File

@ -1,7 +1,7 @@
#include <sstream>
#include "string_utils.h" #include "string_utils.h"
#include "container_utils.h" #include "container_utils.h"
#include <sstream>
namespace sls{ namespace sls{
@ -38,4 +38,4 @@ std::string concatenateIfDifferent(std::vector<std::string> container)
} }
}; }; // namespace sls

View File

@ -45,7 +45,7 @@ TEST_CASE("Concat") {
REQUIRE(v == v2); REQUIRE(v == v2);
SECTION("add a different value"){ SECTION("add a different value"){
v.push_back("two"); v.emplace_back("two");
REQUIRE(v!=v2); REQUIRE(v!=v2);
REQUIRE( sls::concatenateIfDifferent(v) == "one+one+one+two+"); REQUIRE( sls::concatenateIfDifferent(v) == "one+one+one+two+");
} }