From a8482632c3538a36c91af9c8f454cb5159d81311 Mon Sep 17 00:00:00 2001 From: Sergii Bogomolov Date: Mon, 11 Mar 2019 10:08:34 +0100 Subject: [PATCH] Fix unit tests --- test/options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/options.cpp b/test/options.cpp index 1c02053..0fc2c37 100644 --- a/test/options.cpp +++ b/test/options.cpp @@ -94,7 +94,7 @@ TEST_CASE("Basic options", "[options]") CHECK(arguments[2].key() == "value"); CHECK(arguments[3].key() == "av"); - CHECK_THROWS_AS(result["nothing"].as(), std::domain_error&); + CHECK_THROWS_AS(result["nothing"], cxxopts::option_required_exception&); } TEST_CASE("Short options", "[options]")