Skip to content

Commit c32d7c5

Browse files
author
Luke Shaw
committed
Merge branch 'increas_maxdims' into increase_maxdims to add test
2 parents 5b9a8c0 + 988a842 commit c32d7c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/b2nd/test_common.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ typedef struct {
7272

7373

7474
void b2nd_default_parameters() {
75+
if (B2ND_MAX_DIM != 16) {
76+
fprintf(stderr, "Error: B2ND_MAX_DIM must be equal to 16 or edit b2nd_default_parameters func!");
77+
exit(1);
78+
}
7579
CUTEST_PARAMETRIZE(typesize, uint8_t, CUTEST_DATA(1, 2, 4, 8));
7680
CUTEST_PARAMETRIZE(shapes, _test_shapes, CUTEST_DATA(
7781
{2, {40, 40}, {20, 20}, {10, 10}},
@@ -80,6 +84,9 @@ void b2nd_default_parameters() {
8084
{4, {50, 60, 31, 12}, {25, 20, 20, 10}, {5, 5, 5, 10}},
8185
{5, {1, 1, 1024, 1, 1}, {1, 1, 500, 1, 1}, {1, 1, 200, 1, 1}},
8286
{6, {5, 1, 50, 3, 1, 2}, {5, 1, 50, 2, 1, 2}, {2, 1, 20, 2, 1, 2}},
87+
{B2ND_MAX_DIM, {2, 3, 1, 1, 1, 1, 8, 1, 2, 2, 1, 1, 1, 1, 1, 2},
88+
{1, 2, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1},
89+
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}},
8390
));
8491
CUTEST_PARAMETRIZE(backend, _test_backend, CUTEST_DATA(
8592
{false, false},

0 commit comments

Comments
 (0)