| 181 | WRAP_INIT(44, 300, 100, 15, 10, 15, 10, 14, 9); |
| 182 | |
| 183 | TEST(Wrap, MaxDim) { |
| 184 | const size_t largeDim = 65535 + 1; |
| 185 | array input = range(5, 5, 1, largeDim); |
| 186 | |
| 187 | const unsigned wx = 5; |
| 188 | const unsigned wy = 5; |
| 189 | const unsigned sx = 5; |
| 190 | const unsigned sy = 5; |
| 191 | const unsigned px = 0; |
| 192 | const unsigned py = 0; |
| 193 | |
| 194 | array unwrapped = unwrap(input, wx, wy, sx, sy, px, py); |
| 195 | array output = wrap(unwrapped, 5, 5, wx, wy, sx, sy, px, py); |
| 196 | |
| 197 | ASSERT_ARRAYS_EQ(output, input); |
| 198 | } |
| 199 | |
| 200 | TEST(Wrap, DocSnippet) { |
| 201 | //! [ex_wrap_1] |