diff options
| author | Phil Nash | 2012-08-27 21:42:55 +0100 |
|---|---|---|
| committer | Phil Nash | 2012-08-27 21:42:55 +0100 |
| commit | ecf934b04506749a469bd655e2d294f557b9b45f (patch) | |
| tree | 131178ce2ab27166401292bec1b8c15542e668cd /projects/SelfTest/TestMain.cpp | |
| parent | e7db40034cd11bc8b3b04a24f244dfdafc9feb29 (diff) | |
| download | catch3-ecf934b04506749a469bd655e2d294f557b9b45f.tar.gz | |
Option objects now enforce min/ max args generically
Diffstat (limited to 'projects/SelfTest/TestMain.cpp')
| -rw-r--r-- | projects/SelfTest/TestMain.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp index d7031081..9575cfa1 100644 --- a/projects/SelfTest/TestMain.cpp +++ b/projects/SelfTest/TestMain.cpp @@ -159,7 +159,7 @@ TEST_CASE( "selftest/parser/2", "ConfigData" ) { SECTION( "-t/0", "When no test names are supplied it is an error" ) { const char* argv[] = { "test", "-t" }; - REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ), Contains( "at least one" ) ); + REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ), Contains( "at least 1" ) ); } } @@ -184,7 +184,7 @@ TEST_CASE( "selftest/parser/2", "ConfigData" ) { } SECTION( "-r/error", "reporter config only accepts one argument" ) { const char* argv[] = { "test", "-r", "one", "two" }; - REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ), Contains( "one argument" ) ); + REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ), Contains( "1 argument" ) ); } } @@ -203,7 +203,7 @@ TEST_CASE( "selftest/parser/2", "ConfigData" ) { } SECTION( "-b", "break option has no arguments" ) { const char* argv[] = { "test", "-b", "unexpected" }; - REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ), Contains( "not accept" ) ); + REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ), Contains( "0 arguments" ) ); } } @@ -230,7 +230,7 @@ TEST_CASE( "selftest/parser/2", "ConfigData" ) { } SECTION( "-a/error/two args", "cutoff only takes one argument" ) { const char* argv[] = { "test", "-a", "1", "2" }; - REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ), Contains( "accepts" ) ); + REQUIRE_THAT( parseIntoConfigAndReturnError( argv, config ), Contains( "0 and 1 argument" ) ); } } |