forked from boostorg/type_traits
Added Jamfile, + one test case for is_empty
[SVN r10964]
This commit is contained in:
33
tests/Jamfile
Normal file
33
tests/Jamfile
Normal file
@ -0,0 +1,33 @@
|
||||
subproject libs/type_traits/test ;
|
||||
|
||||
|
||||
unit-test alignment_test : alignment_test.cpp
|
||||
: <include>$(BOOST_ROOT) : ;
|
||||
|
||||
unit-test arithmetic_traits_test : arithmetic_traits_test.cpp
|
||||
: <include>$(BOOST_ROOT) : ;
|
||||
|
||||
unit-test composite_traits_test : composite_traits_test.cpp
|
||||
: <include>$(BOOST_ROOT) : ;
|
||||
|
||||
unit-test cv_traits_test : cv_traits_test.cpp
|
||||
: <include>$(BOOST_ROOT) : ;
|
||||
|
||||
unit-test is_convertible_test : is_convertible_test.cpp
|
||||
: <include>$(BOOST_ROOT) : ;
|
||||
|
||||
unit-test is_function_test : is_function_test.cpp
|
||||
: <include>$(BOOST_ROOT) : ;
|
||||
|
||||
unit-test is_same_test : is_same_test.cpp
|
||||
: <include>$(BOOST_ROOT) : ;
|
||||
|
||||
unit-test object_traits_test : object_traits_test.cpp
|
||||
: <include>$(BOOST_ROOT) : ;
|
||||
|
||||
unit-test transform_traits_test : transform_traits_test.cpp
|
||||
: <include>$(BOOST_ROOT) : ;
|
||||
|
||||
|
||||
|
||||
|
@ -19,6 +19,13 @@ NESTED_DECL(is_scalar)
|
||||
NESTED_DECL(is_compound)
|
||||
NESTED_DECL(is_POD)
|
||||
|
||||
struct non_default_constructable_UDT
|
||||
{
|
||||
non_default_constructable_UDT(const non_default_constructable_UDT&){}
|
||||
private:
|
||||
non_default_constructable_UDT(){}
|
||||
};
|
||||
|
||||
int cpp_main(int argc, char* argv[])
|
||||
{
|
||||
NESTED_TEST(is_class, int)
|
||||
@ -204,6 +211,7 @@ int cpp_main(int argc, char* argv[])
|
||||
soft_value_test(true, boost::is_empty<boost::noncopyable>::value)
|
||||
soft_value_test(false, boost::is_empty<non_empty>::value)
|
||||
soft_value_test(false, boost::is_empty<const non_empty&>::value)
|
||||
soft_value_test(true, boost::is_empty<non_default_constructable_UDT>::value)
|
||||
|
||||
return check_result(argc, argv);
|
||||
}
|
||||
@ -230,3 +238,4 @@ unsigned int expected_failures = 4;
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user