From 37a120868976520c54a9df29d246c68c599bf917 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sun, 15 Oct 2023 18:48:43 +0200 Subject: tests: Renamed the ID test --- tests/core.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tests/core.cpp') 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 +#include namespace { -SAW_TEST("Test") { +SAW_TEST("Basic ID functionality") { + using namespace saw; + struct foo {}; + id a{1}; + id b{1}; + id 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"); } } -- cgit v1.2.3