|
|
|
@ -87,7 +87,7 @@ inline void random_matrix(Matrix &out) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_CASE("thrash matrix iterators", "[matrix]") { |
|
|
|
|
for(int count = 0; count < Random::uniform<int>(10,30); count++) { |
|
|
|
|
for(int count = 0; count < 5; count++) { |
|
|
|
|
size_t width = Random::uniform<size_t>(1, 100); |
|
|
|
|
size_t height = Random::uniform<size_t>(1, 100); |
|
|
|
|
|
|
|
|
@ -128,7 +128,7 @@ TEST_CASE("thrash box distance iterators", "[matrix:distance]") { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_CASE("thrash box iterators", "[matrix]") { |
|
|
|
|
for(int count = 0; count < 20; count++) { |
|
|
|
|
for(int count = 0; count < 5; count++) { |
|
|
|
|
size_t width = Random::uniform<size_t>(1, 25); |
|
|
|
|
size_t height = Random::uniform<size_t>(1, 33); |
|
|
|
|
|
|
|
|
@ -159,7 +159,7 @@ TEST_CASE("thrash box iterators", "[matrix]") { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_CASE("thrash compass iterators", "[matrix:compass]") { |
|
|
|
|
for(int count = 0; count < 20; count++) { |
|
|
|
|
for(int count = 0; count < 5; count++) { |
|
|
|
|
size_t width = Random::uniform<size_t>(1, 25); |
|
|
|
|
size_t height = Random::uniform<size_t>(1, 33); |
|
|
|
|
|
|
|
|
@ -225,7 +225,7 @@ TEST_CASE("prototype line algorithm", "[matrix:line]") { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_CASE("prototype circle algorithm", "[matrix:circle]") { |
|
|
|
|
for(int count = 0; count < 2; count++) { |
|
|
|
|
for(int count = 0; count < 5; count++) { |
|
|
|
|
size_t width = Random::uniform<size_t>(10, 13); |
|
|
|
|
size_t height = Random::uniform<size_t>(10, 15); |
|
|
|
|
int pos_mod = Random::uniform<int>(-3,3); |
|
|
|
@ -279,7 +279,7 @@ TEST_CASE("viewport iterator", "[matrix:viewport]") { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_CASE("random rectangle", "[matrix:rando_rect]") { |
|
|
|
|
for(int i = 0; i < 10; i++) { |
|
|
|
|
for(int i = 0; i < 5; i++) { |
|
|
|
|
shared_ptr<Map> map = make_map(); |
|
|
|
|
map->invert_space(); |
|
|
|
|
auto wall_copy = map->walls(); |
|
|
|
@ -303,7 +303,7 @@ TEST_CASE("random rectangle", "[matrix:rando_rect]") { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_CASE("standard rectangle", "[matrix:rectangle]") { |
|
|
|
|
for(int i = 0; i < 20; i++) { |
|
|
|
|
for(int i = 0; i < 5; i++) { |
|
|
|
|
shared_ptr<Map> map = make_map(); |
|
|
|
|
auto wall_copy = map->walls(); |
|
|
|
|
|
|
|
|
|