Skip to content
Snippets Groups Projects
FunctionalTest.cpp 442 B
Newer Older
  • Learn to ignore specific revisions
  • #include <catch2/extensions/HelperMacros.h>
    
    #include <alib/functional>
    
    TEST_CASE ( "Functional Test", "[unit][std][bits]" ) {
    	SECTION ( "Less" ) {
    
    		std::less < > test;
    
    		CHECK ( test ( 1, 2 ) == true );
    		CHECK ( test ( 1, 2. ) == true );
    
    		CHECK_EXCLUSIVE_OR( ( test ( ext::poly_comp ( std::string ( "aa" ) ), 1 ) ), ( test ( ext::poly_comp ( 1 ), std::string ( "aa" ) ) ) );
    
    		CHECK ( test ( ext::poly_comp ( 1 ), 2 ) == true );