From 75c6c0f059c955f0fa8b5f99e30dc650f0503147 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 12 Nov 2016 14:54:21 +0100 Subject: Make executable for test follow rules for main file (nw) Make normal notation for require (nw) Split properly tests (nw) --- tests/lib/util/options.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/lib/util/options.cpp (limited to 'tests/lib/util/options.cpp') 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()); +} -- cgit v1.2.3-70-g09d2