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

Allow non-literal string as description for BDD macros #15

Closed martinmoene closed 9 years ago

martinmoene commented 9 years ago

See https://github.com/philsquared/Catch/issues/455.

Change

#define lest_SCENARIO( sketch  )  lest_CASE( "Scenario: " sketch  )

to

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

etc.