aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.ucl/tests/object.cc
diff options
context:
space:
mode:
Diffstat (limited to 'nihil.ucl/tests/object.cc')
-rw-r--r--nihil.ucl/tests/object.cc15
1 files changed, 11 insertions, 4 deletions
diff --git a/nihil.ucl/tests/object.cc b/nihil.ucl/tests/object.cc
index 1bbcf4f..3ad180e 100644
--- a/nihil.ucl/tests/object.cc
+++ b/nihil.ucl/tests/object.cc
@@ -26,12 +26,19 @@ TEST_CASE("ucl object: compare", "[ucl]")
using namespace std::literals;
auto obj_41 = nihil::ucl::parse("int = 41;"sv);
+ REQUIRE(obj_41);
+
auto obj_42 = nihil::ucl::parse("int = 42;"sv);
+ REQUIRE(obj_42);
+
auto obj_42_2 = nihil::ucl::parse("int = 42;"sv);
+ REQUIRE(obj_42_2);
+
auto obj_43 = nihil::ucl::parse("int = 43;"sv);
+ REQUIRE(obj_43);
- REQUIRE(obj_42 == obj_42_2);
- REQUIRE(obj_42 != obj_43);
- REQUIRE(obj_42 < obj_43);
- REQUIRE(obj_42 > obj_41);
+ REQUIRE(*obj_42 == *obj_42_2);
+ REQUIRE(*obj_42 != *obj_43);
+ REQUIRE(*obj_42 < *obj_43);
+ REQUIRE(*obj_42 > *obj_41);
}