mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Introduce (and use) an IsArgSet accessor method
This commit is contained in:
parent
2b5f085ad1
commit
0cf86a6678
12 changed files with 44 additions and 31 deletions
|
|
@ -115,8 +115,8 @@ BOOST_AUTO_TEST_CASE(util_ParseParameters)
|
|||
// -a, -b and -ccc end up in map, -d ignored because it is after
|
||||
// a non-option argument (non-GNU option parsing)
|
||||
BOOST_CHECK(mapArgs.size() == 3 && mapMultiArgs.size() == 3);
|
||||
BOOST_CHECK(mapArgs.count("-a") && mapArgs.count("-b") && mapArgs.count("-ccc")
|
||||
&& !mapArgs.count("f") && !mapArgs.count("-d"));
|
||||
BOOST_CHECK(IsArgSet("-a") && IsArgSet("-b") && IsArgSet("-ccc")
|
||||
&& !IsArgSet("f") && !IsArgSet("-d"));
|
||||
BOOST_CHECK(mapMultiArgs.count("-a") && mapMultiArgs.count("-b") && mapMultiArgs.count("-ccc")
|
||||
&& !mapMultiArgs.count("f") && !mapMultiArgs.count("-d"));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue