fix for constexpr disabled

add sprout::adaptors::sized
This commit is contained in:
bolero-MURAKAMI 2012-06-16 00:08:42 +09:00
parent 2b8a8662af
commit bcd7674cc0
84 changed files with 1758 additions and 1365 deletions

View file

@ -18,7 +18,7 @@ namespace testspr {
SPROUT_STATIC_CONSTEXPR auto uniqued = sprout::unique(
arr1
);
TESTSPR_DOUBLE_ASSERT(testspr::equal(
TESTSPR_BOTH_ASSERT(testspr::equal(
uniqued,
array<int, 10>{{1, 3, 5, 7, 9, 5, 7, 7, 9, 9}}
));
@ -27,7 +27,7 @@ namespace testspr {
SPROUT_STATIC_CONSTEXPR auto uniqued = sprout::fit::unique(
arr1
);
TESTSPR_DOUBLE_ASSERT(testspr::equal(
TESTSPR_BOTH_ASSERT(testspr::equal(
uniqued,
array<int, 5>{{1, 3, 5, 7, 9}}
));
@ -38,11 +38,11 @@ namespace testspr {
SPROUT_STATIC_CONSTEXPR auto uniqued = sprout::unique(
sprout::sub(arr1, 2, 8)
);
TESTSPR_DOUBLE_ASSERT(testspr::equal(
TESTSPR_BOTH_ASSERT(testspr::equal(
uniqued,
array<int, 6>{{3, 5, 7, 5, 7, 7}}
));
TESTSPR_DOUBLE_ASSERT(testspr::equal(
TESTSPR_BOTH_ASSERT(testspr::equal(
sprout::get_internal(uniqued),
array<int, 10>{{1, 1, 3, 5, 7, 5, 7, 7, 9, 9}}
));
@ -51,11 +51,11 @@ namespace testspr {
SPROUT_STATIC_CONSTEXPR auto uniqued = sprout::fit::unique(
sprout::sub(arr1, 2, 8)
);
TESTSPR_DOUBLE_ASSERT(testspr::equal(
TESTSPR_BOTH_ASSERT(testspr::equal(
uniqued,
array<int, 3>{{3, 5, 7}}
));
TESTSPR_DOUBLE_ASSERT(testspr::equal(
TESTSPR_BOTH_ASSERT(testspr::equal(
sprout::get_internal(uniqued),
array<int, 10>{{1, 1, 3, 5, 7, 5, 7, 7, 9, 9}}
));
@ -70,7 +70,7 @@ namespace testspr {
arr1,
testspr::equal_to<int>()
);
TESTSPR_DOUBLE_ASSERT(testspr::equal(
TESTSPR_BOTH_ASSERT(testspr::equal(
uniqued,
array<int, 10>{{1, 3, 5, 7, 9, 5, 7, 7, 9, 9}}
));
@ -80,7 +80,7 @@ namespace testspr {
arr1,
testspr::equal_to<int>()
);
TESTSPR_DOUBLE_ASSERT(testspr::equal(
TESTSPR_BOTH_ASSERT(testspr::equal(
uniqued,
array<int, 5>{{1, 3, 5, 7, 9}}
));
@ -92,11 +92,11 @@ namespace testspr {
sprout::sub(arr1, 2, 8),
testspr::equal_to<int>()
);
TESTSPR_DOUBLE_ASSERT(testspr::equal(
TESTSPR_BOTH_ASSERT(testspr::equal(
uniqued,
array<int, 6>{{3, 5, 7, 5, 7, 7}}
));
TESTSPR_DOUBLE_ASSERT(testspr::equal(
TESTSPR_BOTH_ASSERT(testspr::equal(
sprout::get_internal(uniqued),
array<int, 10>{{1, 1, 3, 5, 7, 5, 7, 7, 9, 9}}
));
@ -106,11 +106,11 @@ namespace testspr {
sprout::sub(arr1, 2, 8),
testspr::equal_to<int>()
);
TESTSPR_DOUBLE_ASSERT(testspr::equal(
TESTSPR_BOTH_ASSERT(testspr::equal(
uniqued,
array<int, 3>{{3, 5, 7}}
));
TESTSPR_DOUBLE_ASSERT(testspr::equal(
TESTSPR_BOTH_ASSERT(testspr::equal(
sprout::get_internal(uniqued),
array<int, 10>{{1, 1, 3, 5, 7, 5, 7, 7, 9, 9}}
));