summaryrefslogtreecommitdiff
path: root/src/strings/base_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/base_test.cpp')
-rw-r--r--src/strings/base_test.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/strings/base_test.cpp b/src/strings/base_test.cpp
index 52c44dc..f9b9ca6 100644
--- a/src/strings/base_test.cpp
+++ b/src/strings/base_test.cpp
@@ -23,9 +23,13 @@
#include "vstring.hpp"
#include "xstring.hpp"
#include "rstring.hpp"
+#include "literal.hpp"
#include "../poison.hpp"
+
+namespace tmwa
+{
using namespace strings;
struct _test : VString<1> {};
@@ -42,7 +46,8 @@ static_assert(string_comparison_allowed<XString, RString>::value, "xf");
TEST(strings, contains)
{
- XString hi = "Hello";
- EXPECT_TRUE(hi.contains_any("Hi"));
- EXPECT_FALSE(hi.contains_any("hi"));
+ XString hi = "Hello"_s;
+ EXPECT_TRUE(hi.contains_any("Hi"_s));
+ EXPECT_FALSE(hi.contains_any("hi"_s));
}
+} // namespace tmwa