Skip to content

Commit

Permalink
(#24185) lest: add version 1.35.2
Browse files Browse the repository at this point in the history
* lest: add version 1.35.2

* support C++03
  • Loading branch information
toge authored Jun 6, 2024
1 parent c62b750 commit d41e2d5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
3 changes: 3 additions & 0 deletions recipes/lest/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"1.35.2":
url: "https://github.com/martinmoene/lest/archive/v1.35.2.tar.gz"
sha256: "570031345d703587c4984b1fa918e611693735beeb37a6d889d234599b73c670"
"1.35.1":
url: "https://github.com/martinmoene/lest/archive/v1.35.1.tar.gz"
sha256: "ca715833563f983c81d86623c2d1911d7a2aa04ce00459b0f3794a8e441265e0"
1 change: 0 additions & 1 deletion recipes/lest/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ find_package(lest REQUIRED CONFIG)

add_executable(${PROJECT_NAME} test_package.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE lest::lest)
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11)
18 changes: 10 additions & 8 deletions recipes/lest/all/test_package/test_package.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#include "lest/lest.hpp"
#include "lest/lest_cpp03.hpp"

#define CASE( name ) lest_CASE( specification, name )

const lest::test specification[] =
using namespace lest;

test_specification specification;

CASE( "Comment converted to bool indicates absence or presence of comment" )
{
CASE( "Empty string has length zero (succeed)" )
{
EXPECT( 0 == std::string( ).length() );
EXPECT( 0 == std::string("").length() );
},
};
EXPECT( false == bool( comment( "") ) );
EXPECT( true == bool( comment("x") ) );
}

int main( int argc, char * argv[] )
{
Expand Down
2 changes: 2 additions & 0 deletions recipes/lest/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
versions:
"1.35.2":
folder: all
"1.35.1":
folder: all

0 comments on commit d41e2d5

Please sign in to comment.