summaryrefslogtreecommitdiff
path: root/tests/core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/core.cpp')
-rw-r--r--tests/core.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/core.cpp b/tests/core.cpp
index 5b6c116..281cca6 100644
--- a/tests/core.cpp
+++ b/tests/core.cpp
@@ -1,6 +1,7 @@
#include <forstio/test/suite.h>
#include <forstio/core/id.h>
#include <forstio/core/id_map.h>
+#include <forstio/core/string_literal.h>
namespace {
SAW_TEST("ID functionality") {
@@ -28,6 +29,16 @@ SAW_TEST("ID functionality") {
SAW_EXPECT(a.get_value() == 1, "Lost original value");
}
+SAW_TEST("String Literal Append"){
+ using namespace saw;
+
+ constexpr string_literal a = "foo";
+ constexpr string_literal b = "bar";
+ constexpr string_literal c = a+b;
+
+ SAW_EXPECT(c == "foobar", "CT String sum is not \"foobar\"");
+}
+
SAW_TEST("ID Map Insert"){
using namespace saw;