Commit a84949a
authored
test: consolidate vlen F-contiguous regression tests (zarr-developers#4122)
Follow-up test-quality cleanup for the zarr-developersgh-3558 fix (zarr-developers#4116):
- Merge test_vlen_string_f_contiguous and test_vlen_bytes_f_contiguous
into one test parametrized over (dtype, fill_value, elements), matching
the parametrized style of test_vlen_string in the same file.
- Drop the chunks=(2,2) case: with (3,3) data it produces only partial
chunks, which the codec pipeline recopies to C order before encoding, so
it never exercised the F-contiguous path it claimed to cover. Use
chunks == shape (a single complete chunk) so the F-contiguous buffer
reaches the codec untouched.
- Build the F-contiguous input directly via reshape(order="F") instead of
wrapping a C-order reshape in np.asarray(..., order="F"), and assert
data.flags.f_contiguous so a future simplification can't silently defeat
the regression guard.
- Add a docstring stating the verified behavior.
Assisted-by: ClaudeCode:claude-opus-4.81 parent 1d06a82 commit a84949a
1 file changed
Lines changed: 21 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 70 | | |
84 | 71 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
92 | 91 | | |
93 | | - | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
0 commit comments