From b56ae07d0e564bd0aba86e2cd67da0932bc60b48 Mon Sep 17 00:00:00 2001 From: Martin Moene Date: Wed, 25 Jan 2017 06:45:30 +0100 Subject: [PATCH] Remove lest_TEST(), deprecated since version 1.17.0 of 29-Sep-2014 --- README.md | 7 ++----- include/lest/lest.hpp | 4 ---- include/lest/lest_cpp03.hpp | 3 --- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 37f1e89..787ea30 100644 --- a/README.md +++ b/README.md @@ -188,9 +188,6 @@ A *lest* test specification can consist of a) one or more arrays of test cases t **CASE(** "_proposition_", ...**) {** _code_ **}**   *(array of cases)* Describe the expected behaviour to test for and specify the actions and expectations. After the description you can add a lambda capture list to refer to symbols in the enclosing scope. See also section [Module registration macro](#module-registration-macro) – [Single-file code example](example/02-basic.cpp) – [Multi-file code example part 1](example/12-module-1.cpp), [2](example/12-module-2.cpp), [3](example/12-module-3.cpp). -**TEST(** "_proposition_", ...**) {** _code_ **}**   *(array of cases)* -This macro is an alias for CASE(). It may be deprecated. - **lest_CASE(** _specification_, "_proposition_" **) {** _code_ **}**   *(auto-registered cases)* Provide the collection of test cases, describe the expected behaviour to test for and specify the actions and expectations. Consider defining macro CASE(_proposition_) to hide the collection of test cases and define it in terms of lest_CASE(...) – [Single-file code example](example/11-auto-reg.cpp) – [Multi-file code example part 1](example/13-module-auto-reg-1.cpp), [2](example/13-module-auto-reg-2.cpp), [3](example/13-module-auto-reg-3.cpp). @@ -307,7 +304,7 @@ int main( int argc, char *argv[] ) Compile and run: ``` -prompt>g++ -std=c++11 -o main.exe -I./include/lest main.cpp && main +prompt>g++ -std=c++11 -o main.exe -I./include/lest main.cpp && main.exe All tests passed ``` @@ -325,7 +322,7 @@ int main( int argc, char *argv[] ) Compile and run with feedback on success: ``` -prompt>g++ -std=c++11 -o main.exe -I./include/lest main.cpp && main && echo All tests passed +prompt>g++ -std=c++11 -o main.exe -I./include/lest main.cpp && main.exe && echo All tests passed All tests passed ``` diff --git a/include/lest/lest.hpp b/include/lest/lest.hpp index b77d280..3b1f569 100644 --- a/include/lest/lest.hpp +++ b/include/lest/lest.hpp @@ -71,7 +71,6 @@ # if ! lest_FEATURE_AUTO_REGISTER # define CASE lest_CASE -# define TEST lest_TEST # endif # define SETUP lest_SETUP @@ -98,9 +97,6 @@ #define lest_AND_WHEN( story ) lest_SECTION( lest::text( " And: ") + story ) #define lest_AND_THEN( story ) lest_SECTION( lest::text( " And: ") + story ) -#define lest_TEST \ - lest_CASE - #if lest_FEATURE_AUTO_REGISTER # define lest_CASE( specification, proposition ) \ diff --git a/include/lest/lest_cpp03.hpp b/include/lest/lest_cpp03.hpp index 3c63e24..f79554f 100644 --- a/include/lest/lest_cpp03.hpp +++ b/include/lest/lest_cpp03.hpp @@ -188,9 +188,6 @@ namespace lest #define lest_AND_WHEN( story ) lest_SECTION( lest::text( " And: ") + story ) #define lest_AND_THEN( story ) lest_SECTION( lest::text( " And: ") + story ) -#define lest_TEST \ - lest_CASE - #define lest_CASE( specification, proposition ) \ static void lest_FUNCTION( lest::env & ); \ namespace { lest::add_test lest_REGISTRAR( specification, lest::test( proposition, lest_FUNCTION ) ); } \