summaryrefslogtreecommitdiffstatshomepage
path: root/tests/lib/util/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/util/options.cpp')
-rw-r--r--tests/lib/util/options.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lib/util/options.cpp b/tests/lib/util/options.cpp
new file mode 100644
index 00000000000..e971a564521
--- /dev/null
+++ b/tests/lib/util/options.cpp
@@ -0,0 +1,15 @@
+#include "catch.hpp"
+
+#include "options.h"
+
+TEST_CASE("Empty options should return first as nullptr", "[util]")
+{
+ core_options options;
+ REQUIRE(options.first() == nullptr);
+}
+
+TEST_CASE("Empty options should have iterators same", "[util]")
+{
+ core_options options;
+ REQUIRE(options.begin() == options.end());
+}