diff options
author | 2016-11-12 14:54:21 +0100 | |
---|---|---|
committer | 2016-11-12 14:54:21 +0100 | |
commit | 75c6c0f059c955f0fa8b5f99e30dc650f0503147 (patch) | |
tree | e543dcf4ff8fff9a49f0e291d1657fe22d9a9121 /tests/lib/util/options.cpp | |
parent | 3c577aedb88337775be37d564b6ebe1a3d74c8c3 (diff) |
Make executable for test follow rules for main file (nw)
Make normal notation for require (nw)
Split properly tests (nw)
Diffstat (limited to 'tests/lib/util/options.cpp')
-rw-r--r-- | tests/lib/util/options.cpp | 15 |
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()); +} |