mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
[desuructive changes] container traits new interface [破壊的変更]
This commit is contained in:
parent
52a2178ac1
commit
ad60c8c530
356 changed files with 3183 additions and 3251 deletions
|
@ -6,7 +6,7 @@
|
|||
#include <sprout/random/unique_seed.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -48,7 +48,7 @@ namespace testspr {
|
|||
array<int, 3>{{1, 2, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 5>{{5, 1, 2, 4, 3}}
|
||||
));
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ namespace testspr {
|
|||
array<int, 3>{{1, 2, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 5>{{5, 1, 2, 4, 3}}
|
||||
));
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ namespace testspr {
|
|||
array<int, 3>{{1, 2, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 5>{{5, 1, 2, 4, 3}}
|
||||
));
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ namespace testspr {
|
|||
array<int, 3>{{1, 2, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 5>{{5, 1, 2, 4, 3}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <sprout/random/unique_seed.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -59,7 +59,7 @@ namespace testspr {
|
|||
array<int, 3>{{1, 2, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sprout::get<0>(sorted)),
|
||||
sprout::get_internal(sprout::get<0>(sorted)),
|
||||
array<int, 5>{{5, 1, 2, 4, 3}}
|
||||
));
|
||||
SPROUT_STATIC_CONSTEXPR auto sorted2 = sprout::bogo_sort_result(
|
||||
|
@ -78,7 +78,7 @@ namespace testspr {
|
|||
array<int, 3>{{1, 2, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sprout::get<0>(sorted)),
|
||||
sprout::get_internal(sprout::get<0>(sorted)),
|
||||
array<int, 5>{{5, 1, 2, 4, 3}}
|
||||
));
|
||||
SPROUT_STATIC_CONSTEXPR auto sorted2 = sprout::bogo_sort_result(
|
||||
|
@ -138,7 +138,7 @@ namespace testspr {
|
|||
array<int, 3>{{1, 2, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sprout::get<0>(sorted)),
|
||||
sprout::get_internal(sprout::get<0>(sorted)),
|
||||
array<int, 5>{{5, 1, 2, 4, 3}}
|
||||
));
|
||||
SPROUT_STATIC_CONSTEXPR auto sorted2 = sprout::bogo_sort_result(
|
||||
|
@ -158,7 +158,7 @@ namespace testspr {
|
|||
array<int, 3>{{1, 2, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sprout::get<0>(sorted)),
|
||||
sprout::get_internal(sprout::get<0>(sorted)),
|
||||
array<int, 5>{{5, 1, 2, 4, 3}}
|
||||
));
|
||||
SPROUT_STATIC_CONSTEXPR auto sorted2 = sprout::bogo_sort_result(
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/copy.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -75,7 +75,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 4, 5, 6, 7, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(copied),
|
||||
sprout::get_internal(copied),
|
||||
array<int, 10>{{0, 0, 3, 4, 5, 6, 7, 8, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 4, 5, 6, 7, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(copied),
|
||||
sprout::get_internal(copied),
|
||||
array<int, 10>{{0, 0, 3, 4, 5, 6, 7, 8, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/copy_backward.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -75,7 +75,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 4, 5, 6, 7, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(copied),
|
||||
sprout::get_internal(copied),
|
||||
array<int, 10>{{0, 0, 3, 4, 5, 6, 7, 8, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 4, 5, 6, 7, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(copied),
|
||||
sprout::get_internal(copied),
|
||||
array<int, 10>{{0, 0, 3, 4, 5, 6, 7, 8, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/copy_if.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -80,7 +80,7 @@ namespace testspr {
|
|||
array<int, 6>{{1, 3, 5, 7, 9, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(copied),
|
||||
sprout::get_internal(copied),
|
||||
array<int, 10>{{0, 0, 1, 3, 5, 7, 9, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ namespace testspr {
|
|||
array<int, 5>{{1, 3, 5, 7, 9}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(copied),
|
||||
sprout::get_internal(copied),
|
||||
array<int, 10>{{0, 0, 1, 3, 5, 7, 9, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <sprout/algorithm/copy_n.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -75,7 +75,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 4, 5, 6, 7, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(copied),
|
||||
sprout::get_internal(copied),
|
||||
array<int, 10>{{0, 0, 3, 4, 5, 6, 7, 8, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 4, 5, 6, 7, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(copied),
|
||||
sprout::get_internal(copied),
|
||||
array<int, 10>{{0, 0, 3, 4, 5, 6, 7, 8, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/fill.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -46,7 +46,7 @@ namespace testspr {
|
|||
array<int, 6>{{-1, -1, -1, -1, -1, -1}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(filled),
|
||||
sprout::get_internal(filled),
|
||||
array<int, 10>{{1, 2, -1, -1, -1, -1, -1, -1, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace testspr {
|
|||
array<int, 6>{{-1, -1, -1, -1, -1, -1}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(filled),
|
||||
sprout::get_internal(filled),
|
||||
array<int, 10>{{1, 2, -1, -1, -1, -1, -1, -1, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/fill_n.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -49,7 +49,7 @@ namespace testspr {
|
|||
array<int, 6>{{-1, -1, -1, -1, 7, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(filled),
|
||||
sprout::get_internal(filled),
|
||||
array<int, 10>{{1, 2, -1, -1, -1, -1, 7, 8, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ namespace testspr {
|
|||
array<int, 4>{{-1, -1, -1, -1}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(filled),
|
||||
sprout::get_internal(filled),
|
||||
array<int, 10>{{1, 2, -1, -1, -1, -1, 7, 8, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/generate.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -49,7 +49,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 4, 8, 16, 32, 64}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(generated),
|
||||
sprout::get_internal(generated),
|
||||
array<int, 10>{{1, 2, 2, 4, 8, 16, 32, 64, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 4, 8, 16, 32, 64}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(generated),
|
||||
sprout::get_internal(generated),
|
||||
array<int, 10>{{1, 2, 2, 4, 8, 16, 32, 64, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/generate_n.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -52,7 +52,7 @@ namespace testspr {
|
|||
array<int, 6>{{1, 2, 4, 8, 7, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(generated),
|
||||
sprout::get_internal(generated),
|
||||
array<int, 10>{{1, 2, 1, 2, 4, 8, 7, 8, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ namespace testspr {
|
|||
array<int, 4>{{1, 2, 4, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(generated),
|
||||
sprout::get_internal(generated),
|
||||
array<int, 10>{{1, 2, 1, 2, 4, 8, 7, 8, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/inplace_merge.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -46,7 +46,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 4, 5, 6, 7, 9}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{1, 3, 2, 4, 5, 6, 7, 9, 8, 10}}
|
||||
));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 4, 5, 6, 7, 9}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{1, 3, 2, 4, 5, 6, 7, 9, 8, 10}}
|
||||
));
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 4, 5, 6, 7, 9}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{1, 3, 2, 4, 5, 6, 7, 9, 8, 10}}
|
||||
));
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 4, 5, 6, 7, 9}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{1, 3, 2, 4, 5, 6, 7, 9, 8, 10}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/make_heap.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -43,7 +43,7 @@ namespace testspr {
|
|||
array<int, 8>{{9, 6, 8, 2, 5, 3, 4, 1}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 7, 9, 6, 8, 2, 5, 3, 4, 1}}
|
||||
));
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace testspr {
|
|||
array<int, 8>{{9, 6, 8, 2, 5, 3, 4, 1}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 7, 9, 6, 8, 2, 5, 3, 4, 1}}
|
||||
));
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ namespace testspr {
|
|||
array<int, 8>{{9, 6, 8, 2, 5, 3, 4, 1}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 7, 9, 6, 8, 2, 5, 3, 4, 1}}
|
||||
));
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ namespace testspr {
|
|||
array<int, 8>{{9, 6, 8, 2, 5, 3, 4, 1}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 7, 9, 6, 8, 2, 5, 3, 4, 1}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/make_partial_heap.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -46,7 +46,7 @@ namespace testspr {
|
|||
array<int, 8>{{3, 1, 2, 9, 8, 6, 5, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 7, 3, 1, 2, 9, 8, 6, 5, 4}}
|
||||
));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace testspr {
|
|||
array<int, 3>{{3, 1, 2}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 7, 3, 1, 2, 9, 8, 6, 5, 4}}
|
||||
));
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ namespace testspr {
|
|||
array<int, 8>{{3, 1, 2, 9, 8, 6, 5, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 7, 3, 1, 2, 9, 8, 6, 5, 4}}
|
||||
));
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ namespace testspr {
|
|||
array<int, 3>{{3, 1, 2}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 7, 3, 1, 2, 9, 8, 6, 5, 4}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/merge.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -86,7 +86,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 4, 5, 6, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 2, 3, 4, 5, 6, 7, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 4, 5, 6, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 2, 3, 4, 5, 6, 7, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 4, 5, 6, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 2, 3, 4, 5, 6, 7, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 4, 5, 6, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 2, 3, 4, 5, 6, 7, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/nth_element.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -46,7 +46,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 5, 9, 8, 6}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(nth),
|
||||
sprout::get_internal(nth),
|
||||
array<int, 10>{{10, 7, 2, 3, 5, 9, 8, 6, 4, 1}}
|
||||
));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace testspr {
|
|||
array<int, 3>{{2, 3, 5}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(nth),
|
||||
sprout::get_internal(nth),
|
||||
array<int, 10>{{10, 7, 2, 3, 5, 9, 8, 6, 4, 1}}
|
||||
));
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 5, 9, 8, 6}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(nth),
|
||||
sprout::get_internal(nth),
|
||||
array<int, 10>{{10, 7, 2, 3, 5, 9, 8, 6, 4, 1}}
|
||||
));
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ namespace testspr {
|
|||
array<int, 3>{{2, 3, 5}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(nth),
|
||||
sprout::get_internal(nth),
|
||||
array<int, 10>{{10, 7, 2, 3, 5, 9, 8, 6, 4, 1}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/partial_sort.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -46,7 +46,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 4, 9, 8, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{5, 1, 2, 3, 4, 9, 8, 7, 10, 6}}
|
||||
));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace testspr {
|
|||
array<int, 3>{{2, 3, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{5, 1, 2, 3, 4, 9, 8, 7, 10, 6}}
|
||||
));
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 4, 9, 8, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{5, 1, 2, 3, 4, 9, 8, 7, 10, 6}}
|
||||
));
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ namespace testspr {
|
|||
array<int, 3>{{2, 3, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{5, 1, 2, 3, 4, 9, 8, 7, 10, 6}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/partition.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -46,7 +46,7 @@ namespace testspr {
|
|||
array<int, 6>{{7, 5, 3, 4, 6, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(partitioned),
|
||||
sprout::get_internal(partitioned),
|
||||
array<int, 10>{{1, 2, 7, 5, 3, 4, 6, 8, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace testspr {
|
|||
array<int, 3>{{7, 5, 3}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(partitioned),
|
||||
sprout::get_internal(partitioned),
|
||||
array<int, 10>{{1, 2, 7, 5, 3, 4, 6, 8, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/partition_copy.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -80,7 +80,7 @@ namespace testspr {
|
|||
array<int, 6>{{7, 5, 3, 4, 6, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(partitioned),
|
||||
sprout::get_internal(partitioned),
|
||||
array<int, 10>{{0, 0, 7, 5, 3, 4, 6, 8, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ namespace testspr {
|
|||
array<int, 3>{{7, 5, 3}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(partitioned),
|
||||
sprout::get_internal(partitioned),
|
||||
array<int, 10>{{0, 0, 7, 5, 3, 4, 6, 8, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/pop_heap.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -43,7 +43,7 @@ namespace testspr {
|
|||
array<int, 8>{{7, 6, 4, 5, 3, 1, 2, 9}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 8, 7, 6, 4, 5, 3, 1, 2, 9}}
|
||||
));
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace testspr {
|
|||
array<int, 7>{{7, 6, 4, 5, 3, 1, 2}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 8, 7, 6, 4, 5, 3, 1, 2, 9}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/push_heap.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -43,7 +43,7 @@ namespace testspr {
|
|||
array<int, 8>{{9, 7, 4, 6, 3, 1, 2, 5}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 8, 9, 7, 4, 6, 3, 1, 2, 5}}
|
||||
));
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace testspr {
|
|||
array<int, 8>{{9, 7, 4, 6, 3, 1, 2, 5}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 8, 9, 7, 4, 6, 3, 1, 2, 5}}
|
||||
));
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ namespace testspr {
|
|||
array<int, 8>{{9, 7, 4, 6, 3, 1, 2, 5}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 8, 9, 7, 4, 6, 3, 1, 2, 5}}
|
||||
));
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ namespace testspr {
|
|||
array<int, 8>{{9, 7, 4, 6, 3, 1, 2, 5}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(heap),
|
||||
sprout::get_internal(heap),
|
||||
array<int, 10>{{10, 8, 9, 7, 4, 6, 3, 1, 2, 5}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/remove.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -46,7 +46,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 5, 7, 0, 7, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(removed),
|
||||
sprout::get_internal(removed),
|
||||
array<int, 10>{{1, 0, 3, 5, 7, 0, 7, 0, 9, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace testspr {
|
|||
array<int, 3>{{3, 5, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(removed),
|
||||
sprout::get_internal(removed),
|
||||
array<int, 10>{{1, 0, 3, 5, 7, 0, 7, 0, 9, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/remove_copy.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -80,7 +80,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 5, 7, 0, 0, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(removed),
|
||||
sprout::get_internal(removed),
|
||||
array<int, 10>{{0, 0, 3, 5, 7, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ namespace testspr {
|
|||
array<int, 3>{{3, 5, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(removed),
|
||||
sprout::get_internal(removed),
|
||||
array<int, 10>{{0, 0, 3, 5, 7, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/remove_copy_if.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -80,7 +80,7 @@ namespace testspr {
|
|||
array<int, 6>{{0, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(removed),
|
||||
sprout::get_internal(removed),
|
||||
array<int, 10>{{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ namespace testspr {
|
|||
array<int, 3>{{0, 0, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(removed),
|
||||
sprout::get_internal(removed),
|
||||
array<int, 10>{{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/remove_if.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -46,7 +46,7 @@ namespace testspr {
|
|||
array<int, 6>{{0, 0, 0, 0, 7, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(removed),
|
||||
sprout::get_internal(removed),
|
||||
array<int, 10>{{1, 0, 0, 0, 0, 0, 7, 0, 9, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace testspr {
|
|||
array<int, 3>{{0, 0, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(removed),
|
||||
sprout::get_internal(removed),
|
||||
array<int, 10>{{1, 0, 0, 0, 0, 0, 7, 0, 9, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/replace.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -49,7 +49,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, -1, 5, -1, 7, -1}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(replaced),
|
||||
sprout::get_internal(replaced),
|
||||
array<int, 10>{{1, 0, 3, -1, 5, -1, 7, -1, 9, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, -1, 5, -1, 7, -1}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(replaced),
|
||||
sprout::get_internal(replaced),
|
||||
array<int, 10>{{1, 0, 3, -1, 5, -1, 7, -1, 9, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/replace_copy.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -85,7 +85,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, -1, 5, -1, 7, -1}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(replaced),
|
||||
sprout::get_internal(replaced),
|
||||
array<int, 10>{{0, 0, 3, -1, 5, -1, 7, -1, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, -1, 5, -1, 7, -1}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(replaced),
|
||||
sprout::get_internal(replaced),
|
||||
array<int, 10>{{0, 0, 3, -1, 5, -1, 7, -1, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/replace_copy_if.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -85,7 +85,7 @@ namespace testspr {
|
|||
array<int, 6>{{-1, 0, -1, 0, -1, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(replaced),
|
||||
sprout::get_internal(replaced),
|
||||
array<int, 10>{{0, 0, -1, 0, -1, 0, -1, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ namespace testspr {
|
|||
array<int, 6>{{-1, 0, -1, 0, -1, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(replaced),
|
||||
sprout::get_internal(replaced),
|
||||
array<int, 10>{{0, 0, -1, 0, -1, 0, -1, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/replace_if.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -49,7 +49,7 @@ namespace testspr {
|
|||
array<int, 6>{{-1, 0, -1, 0, -1, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(replaced),
|
||||
sprout::get_internal(replaced),
|
||||
array<int, 10>{{1, 0, -1, 0, -1, 0, -1, 0, 9, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ namespace testspr {
|
|||
array<int, 6>{{-1, 0, -1, 0, -1, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(replaced),
|
||||
sprout::get_internal(replaced),
|
||||
array<int, 10>{{1, 0, -1, 0, -1, 0, -1, 0, 9, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/reverse.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -43,7 +43,7 @@ namespace testspr {
|
|||
array<int, 6>{{8, 7, 6, 5, 4, 3}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(reversed),
|
||||
sprout::get_internal(reversed),
|
||||
array<int, 10>{{1, 2, 8, 7, 6, 5, 4, 3, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace testspr {
|
|||
array<int, 6>{{8, 7, 6, 5, 4, 3}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(reversed),
|
||||
sprout::get_internal(reversed),
|
||||
array<int, 10>{{1, 2, 8, 7, 6, 5, 4, 3, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/reverse_copy.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -75,7 +75,7 @@ namespace testspr {
|
|||
array<int, 6>{{8, 7, 6, 5, 4, 3}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(reversed),
|
||||
sprout::get_internal(reversed),
|
||||
array<int, 10>{{0, 0, 8, 7, 6, 5, 4, 3, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace testspr {
|
|||
array<int, 6>{{8, 7, 6, 5, 4, 3}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(reversed),
|
||||
sprout::get_internal(reversed),
|
||||
array<int, 10>{{0, 0, 8, 7, 6, 5, 4, 3, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/rotate.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -46,7 +46,7 @@ namespace testspr {
|
|||
array<int, 6>{{6, 7, 8, 3, 4, 5}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(rotated),
|
||||
sprout::get_internal(rotated),
|
||||
array<int, 10>{{1, 2, 6, 7, 8, 3, 4, 5, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace testspr {
|
|||
array<int, 6>{{6, 7, 8, 3, 4, 5}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(rotated),
|
||||
sprout::get_internal(rotated),
|
||||
array<int, 10>{{1, 2, 6, 7, 8, 3, 4, 5, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/rotate_copy.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -80,7 +80,7 @@ namespace testspr {
|
|||
array<int, 6>{{6, 7, 8, 3, 4, 5}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(rotated),
|
||||
sprout::get_internal(rotated),
|
||||
array<int, 10>{{0, 0, 6, 7, 8, 3, 4, 5, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ namespace testspr {
|
|||
array<int, 6>{{6, 7, 8, 3, 4, 5}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(rotated),
|
||||
sprout::get_internal(rotated),
|
||||
array<int, 10>{{0, 0, 6, 7, 8, 3, 4, 5, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/set_difference.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -86,7 +86,7 @@ namespace testspr {
|
|||
array<int, 6>{{5, 15, 25, 0, 0, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 5, 15, 25, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ namespace testspr {
|
|||
array<int, 3>{{5, 15, 25}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 5, 15, 25, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ namespace testspr {
|
|||
array<int, 6>{{5, 15, 25, 0, 0, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 5, 15, 25, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ namespace testspr {
|
|||
array<int, 3>{{5, 15, 25}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 5, 15, 25, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/set_intersection.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -86,7 +86,7 @@ namespace testspr {
|
|||
array<int, 6>{{20, 30, 40, 0, 0, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 20, 30, 40, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ namespace testspr {
|
|||
array<int, 3>{{20, 30, 40}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 20, 30, 40, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ namespace testspr {
|
|||
array<int, 6>{{20, 30, 40, 0, 0, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 20, 30, 40, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ namespace testspr {
|
|||
array<int, 3>{{20, 30, 40}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 20, 30, 40, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/set_symmetric_difference.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -86,7 +86,7 @@ namespace testspr {
|
|||
array<int, 6>{{5, 15, 25, 30, 40, 50}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 5, 15, 25, 30, 40, 50, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ namespace testspr {
|
|||
array<int, 6>{{5, 15, 25, 30, 40, 50}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 5, 15, 25, 30, 40, 50, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ namespace testspr {
|
|||
array<int, 6>{{5, 15, 25, 30, 40, 50}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 5, 15, 25, 30, 40, 50, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ namespace testspr {
|
|||
array<int, 6>{{5, 15, 25, 30, 40, 50}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 5, 15, 25, 30, 40, 50, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/set_union.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -86,7 +86,7 @@ namespace testspr {
|
|||
array<int, 6>{{5, 10, 15, 20, 25, 30}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 5, 10, 15, 20, 25, 30, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ namespace testspr {
|
|||
array<int, 6>{{5, 10, 15, 20, 25, 30}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 5, 10, 15, 20, 25, 30, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ namespace testspr {
|
|||
array<int, 6>{{5, 10, 15, 20, 25, 30}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 5, 10, 15, 20, 25, 30, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ namespace testspr {
|
|||
array<int, 6>{{5, 10, 15, 20, 25, 30}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(merged),
|
||||
sprout::get_internal(merged),
|
||||
array<int, 10>{{0, 0, 5, 10, 15, 20, 25, 30, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <sprout/random/unique_seed.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -48,7 +48,7 @@ namespace testspr {
|
|||
sprout::sub(arr1, 2, 8)
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::is_permutation(
|
||||
sprout::get_fixed(shuffled),
|
||||
sprout::get_internal(shuffled),
|
||||
arr1
|
||||
));
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ namespace testspr {
|
|||
sprout::sub(arr1, 2, 8)
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::is_permutation(
|
||||
sprout::get_fixed(shuffled),
|
||||
sprout::get_internal(shuffled),
|
||||
arr1
|
||||
));
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <sprout/random/unique_seed.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -59,7 +59,7 @@ namespace testspr {
|
|||
sprout::sub(arr1, 2, 8)
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::is_permutation(
|
||||
sprout::get_fixed(sprout::get<0>(shuffled)),
|
||||
sprout::get_internal(sprout::get<0>(shuffled)),
|
||||
arr1
|
||||
));
|
||||
SPROUT_STATIC_CONSTEXPR auto shuffled2 = sprout::shuffle_result(
|
||||
|
@ -78,7 +78,7 @@ namespace testspr {
|
|||
sprout::sub(arr1, 2, 8)
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::is_permutation(
|
||||
sprout::get_fixed(sprout::get<0>(shuffled)),
|
||||
sprout::get_internal(sprout::get<0>(shuffled)),
|
||||
arr1
|
||||
));
|
||||
SPROUT_STATIC_CONSTEXPR auto shuffled2 = sprout::shuffle_result(
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/sort.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -43,7 +43,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 4, 7, 8, 9}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{5, 1, 2, 3, 4, 7, 8, 9, 10, 6}}
|
||||
));
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 4, 7, 8, 9}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{5, 1, 2, 3, 4, 7, 8, 9, 10, 6}}
|
||||
));
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 4, 7, 8, 9}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{5, 1, 2, 3, 4, 7, 8, 9, 10, 6}}
|
||||
));
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 4, 7, 8, 9}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{5, 1, 2, 3, 4, 7, 8, 9, 10, 6}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/sort_heap.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -43,7 +43,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 5, 6, 7, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{10, 9, 2, 3, 5, 6, 7, 8, 4, 1}}
|
||||
));
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 5, 6, 7, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{10, 9, 2, 3, 5, 6, 7, 8, 4, 1}}
|
||||
));
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 5, 6, 7, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{10, 9, 2, 3, 5, 6, 7, 8, 4, 1}}
|
||||
));
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 5, 6, 7, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{10, 9, 2, 3, 5, 6, 7, 8, 4, 1}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/stable_partition.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -46,7 +46,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 5, 7, 4, 6, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(partitioned),
|
||||
sprout::get_internal(partitioned),
|
||||
array<int, 10>{{1, 2, 3, 5, 7, 4, 6, 8, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace testspr {
|
|||
array<int, 3>{{3, 5, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(partitioned),
|
||||
sprout::get_internal(partitioned),
|
||||
array<int, 10>{{1, 2, 3, 5, 7, 4, 6, 8, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/stable_partition_copy.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -80,7 +80,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 5, 7, 4, 6, 8}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(partitioned),
|
||||
sprout::get_internal(partitioned),
|
||||
array<int, 10>{{0, 0, 3, 5, 7, 4, 6, 8, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ namespace testspr {
|
|||
array<int, 3>{{3, 5, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(partitioned),
|
||||
sprout::get_internal(partitioned),
|
||||
array<int, 10>{{0, 0, 3, 5, 7, 4, 6, 8, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/stable_sort.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -43,7 +43,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 4, 7, 8, 9}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{5, 1, 2, 3, 4, 7, 8, 9, 10, 6}}
|
||||
));
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 3, 4, 7, 8, 9}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{5, 1, 2, 3, 4, 7, 8, 9, 10, 6}}
|
||||
));
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 7, 8, 3, 9, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{5, 1, 2, 7, 8, 3, 9, 4, 10, 6}}
|
||||
));
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ namespace testspr {
|
|||
array<int, 6>{{2, 7, 8, 3, 9, 4}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(sorted),
|
||||
sprout::get_internal(sorted),
|
||||
array<int, 10>{{5, 1, 2, 7, 8, 3, 9, 4, 10, 6}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/swap_element.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -49,7 +49,7 @@ namespace testspr {
|
|||
array<int, 6>{{8, 4, 5, 6, 7, 3}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(swapped),
|
||||
sprout::get_internal(swapped),
|
||||
array<int, 10>{{1, 2, 8, 4, 5, 6, 7, 3, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ namespace testspr {
|
|||
array<int, 6>{{8, 4, 5, 6, 7, 3}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(swapped),
|
||||
sprout::get_internal(swapped),
|
||||
array<int, 10>{{1, 2, 8, 4, 5, 6, 7, 3, 9, 10}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/swap_element_copy.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -85,7 +85,7 @@ namespace testspr {
|
|||
array<int, 6>{{8, 4, 5, 6, 7, 3}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(swapped),
|
||||
sprout::get_internal(swapped),
|
||||
array<int, 10>{{0, 0, 8, 4, 5, 6, 7, 3, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ namespace testspr {
|
|||
array<int, 6>{{8, 4, 5, 6, 7, 3}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(swapped),
|
||||
sprout::get_internal(swapped),
|
||||
array<int, 10>{{0, 0, 8, 4, 5, 6, 7, 3, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/transform.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -80,7 +80,7 @@ namespace testspr {
|
|||
array<int, 6>{{6, 8, 10, 12, 14, 16}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(transformed),
|
||||
sprout::get_internal(transformed),
|
||||
array<int, 10>{{0, 0, 6, 8, 10, 12, 14, 16, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ namespace testspr {
|
|||
array<int, 6>{{6, 8, 10, 12, 14, 16}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(transformed),
|
||||
sprout::get_internal(transformed),
|
||||
array<int, 10>{{0, 0, 6, 8, 10, 12, 14, 16, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -177,7 +177,7 @@ namespace testspr {
|
|||
array<int, 6>{{6, 8, 10, 12, 14, 16}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(transformed),
|
||||
sprout::get_internal(transformed),
|
||||
array<int, 10>{{0, 0, 6, 8, 10, 12, 14, 16, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -194,7 +194,7 @@ namespace testspr {
|
|||
array<int, 6>{{6, 8, 10, 12, 14, 16}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(transformed),
|
||||
sprout::get_internal(transformed),
|
||||
array<int, 10>{{0, 0, 6, 8, 10, 12, 14, 16, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/unique.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -43,7 +43,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 5, 7, 5, 7, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(uniqued),
|
||||
sprout::get_internal(uniqued),
|
||||
array<int, 10>{{1, 1, 3, 5, 7, 5, 7, 7, 9, 9}}
|
||||
));
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace testspr {
|
|||
array<int, 3>{{3, 5, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(uniqued),
|
||||
sprout::get_internal(uniqued),
|
||||
array<int, 10>{{1, 1, 3, 5, 7, 5, 7, 7, 9, 9}}
|
||||
));
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 5, 7, 5, 7, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(uniqued),
|
||||
sprout::get_internal(uniqued),
|
||||
array<int, 10>{{1, 1, 3, 5, 7, 5, 7, 7, 9, 9}}
|
||||
));
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ namespace testspr {
|
|||
array<int, 3>{{3, 5, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(uniqued),
|
||||
sprout::get_internal(uniqued),
|
||||
array<int, 10>{{1, 1, 3, 5, 7, 5, 7, 7, 9, 9}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <sprout/algorithm/unique_copy.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/sub_array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
@ -75,7 +75,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 5, 7, 0, 0, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(uniqued),
|
||||
sprout::get_internal(uniqued),
|
||||
array<int, 10>{{0, 0, 3, 5, 7, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace testspr {
|
|||
array<int, 3>{{3, 5, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(uniqued),
|
||||
sprout::get_internal(uniqued),
|
||||
array<int, 10>{{0, 0, 3, 5, 7, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -165,7 +165,7 @@ namespace testspr {
|
|||
array<int, 6>{{3, 5, 7, 0, 0, 0}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(uniqued),
|
||||
sprout::get_internal(uniqued),
|
||||
array<int, 10>{{0, 0, 3, 5, 7, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ namespace testspr {
|
|||
array<int, 3>{{3, 5, 7}}
|
||||
));
|
||||
TESTSPR_DOUBLE_ASSERT(testspr::equal(
|
||||
sprout::get_fixed(uniqued),
|
||||
sprout::get_internal(uniqued),
|
||||
array<int, 10>{{0, 0, 3, 5, 7, 0, 0, 0, 0, 0}}
|
||||
));
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define TESTSPR_SPROUT_ARRAY_HPP
|
||||
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <sstream>
|
||||
#include <type_traits>
|
||||
#include <sprout/string.hpp>
|
||||
#include <sprout/fixed_container.hpp>
|
||||
#include <sprout/container.hpp>
|
||||
#include <testspr/tools.hpp>
|
||||
|
||||
namespace testspr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue