martinmoene / lest

A modern, C++11-native, single-file header-only, tiny framework for unit-tests, TDD and BDD (includes C++98 variant)
Boost Software License 1.0
390 stars 45 forks source link

Fix lest_SCENARIO() for auto-registration of tests #53

Closed martinmoene closed 6 years ago

martinmoene commented 6 years ago

In the auto-registration mode, lest_SCENARIO() must have access to the specification, like:

#define lest_SCENARIO( specification, sketch  )  lest_CASE( specification, lest::text("Scenario: ") + sketch  )

Now it is:

#define lest_SCENARIO( sketch  )  lest_CASE( lest::text("Scenario: ") + sketch  )

Also add the suggestion to define SCENARIO like CASE:

#define SCENARIO( sketch  )  lest_SCENARIO( specification, sketch  )