We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b9a8c0 + 988a842 commit c32d7c5Copy full SHA for c32d7c5
tests/b2nd/test_common.h
@@ -72,6 +72,10 @@ typedef struct {
72
73
74
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
+ }
79
CUTEST_PARAMETRIZE(typesize, uint8_t, CUTEST_DATA(1, 2, 4, 8));
80
CUTEST_PARAMETRIZE(shapes, _test_shapes, CUTEST_DATA(
81
{2, {40, 40}, {20, 20}, {10, 10}},
@@ -80,6 +84,9 @@ void b2nd_default_parameters() {
84
{4, {50, 60, 31, 12}, {25, 20, 20, 10}, {5, 5, 5, 10}},
85
{5, {1, 1, 1024, 1, 1}, {1, 1, 500, 1, 1}, {1, 1, 200, 1, 1}},
82
86
{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}},
83
90
));
91
CUTEST_PARAMETRIZE(backend, _test_backend, CUTEST_DATA(
92
{false, false},
0 commit comments