forked from boostorg/tuple
added few tests for cons lists
[SVN r10925]
This commit is contained in:
@ -261,6 +261,15 @@ void foo7() {
|
||||
dummy(a);
|
||||
}
|
||||
|
||||
// Testing cons lists
|
||||
void foo8()
|
||||
{
|
||||
cons<volatile float, null_type> a(1, null_type());
|
||||
cons<const int, cons<volatile float, null_type> > b(2,a);
|
||||
int i = 3;
|
||||
cons<int&, cons<const int, cons<volatile float, null_type> > > c(i, b);
|
||||
BOOST_TEST(make_tuple(3,2,1)==c);
|
||||
}
|
||||
|
||||
|
||||
// --------------------------------
|
||||
@ -274,6 +283,7 @@ int test_main(int, char *[]) {
|
||||
foo5();
|
||||
foo6();
|
||||
foo7();
|
||||
foo8();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user