diff options
Diffstat (limited to 'tests/core.cpp')
-rw-r--r-- | tests/core.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/core.cpp b/tests/core.cpp index 0ddfcd6..485e601 100644 --- a/tests/core.cpp +++ b/tests/core.cpp @@ -1,7 +1,17 @@ #include <forstio/test/suite.h> +#include <forstio/core/id.h> namespace { -SAW_TEST("Test") { +SAW_TEST("Basic ID functionality") { + using namespace saw; + struct foo {}; + id<foo> a{1}; + id<foo> b{1}; + id<foo> c{2}; + + SAW_EXPECT(a == b, "Should be equal"); + SAW_EXPECT(a != c, "Shouldn't be equal"); + SAW_EXPECT(a.get_value() == 1, "Lost original value"); } } |