mirror of
https://github.com/CLIUtils/CLI11.git
synced 2026-01-19 04:52:08 +00:00
CLI::IsMember (#222)
* Adding first draft of Sets Use IsMember now Using IsMember as backend for Set Non-const validator backend Move set tests to set Clearer inits * Drop shortcut Tighten up classes a bit for MSVC Check with GCC 4.8 too * Simpler templates, but more of them Dropping more type safety for older compilers Shortcut string set * Adding shortcut init Making g++ 4.7 docker image happy Fix Clang tidy issue with last commit Adding one more shortcut, adding a couple of tests * Dropping dual pointer versions of code * Smarter shortcut syntax * Adding slighly faster choices * Cleanup to make InMember simpler * Drop choices for now, adding some tests * ValidationError is now always the error from a validator * Support for other types of initializer lists, including enums * Factor out type utilities, single version of IsMember code * Adding a few tests for #224 * Minor cleanup for Validation Error * Adding tests, moved deprecated tests * Docs updates
This commit is contained in:
@@ -888,8 +888,8 @@ TEST_F(TApp, UnnamedSubMixExtras) {
|
||||
run();
|
||||
EXPECT_EQ(val, -3.0);
|
||||
EXPECT_EQ(val2, 5.93);
|
||||
EXPECT_EQ(app.remaining_size(), 2);
|
||||
EXPECT_EQ(sub->remaining_size(), 0);
|
||||
EXPECT_EQ(app.remaining_size(), 2u);
|
||||
EXPECT_EQ(sub->remaining_size(), 0u);
|
||||
}
|
||||
|
||||
TEST_F(TApp, UnnamedSubNoExtras) {
|
||||
@@ -901,8 +901,8 @@ TEST_F(TApp, UnnamedSubNoExtras) {
|
||||
run();
|
||||
EXPECT_EQ(val, -3.0);
|
||||
EXPECT_EQ(val2, 5.93);
|
||||
EXPECT_EQ(app.remaining_size(), 0);
|
||||
EXPECT_EQ(sub->remaining_size(), 0);
|
||||
EXPECT_EQ(app.remaining_size(), 0u);
|
||||
EXPECT_EQ(sub->remaining_size(), 0u);
|
||||
}
|
||||
|
||||
TEST(SharedSubTests, SharedSubcommand) {
|
||||
|
||||
Reference in New Issue
Block a user