#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 < int > ( std::string ( "aa" ) ), 1 ) ), ( test ( ext::poly_comp < std::string > ( 1 ), std::string ( "aa" ) ) ) );

		CHECK ( test ( ext::poly_comp < int > ( 1 ), 2 ) == true );
	}
}