diff options
| author | 2026-07-27 11:16:56 -0400 | |
|---|---|---|
| committer | 2026-07-27 11:16:56 -0400 | |
| commit | 7e9e479502e6d56057aac066b61336d0013b6a7a (patch) | |
| tree | 2a9675e93abe7a7cde40eb652fb10c54eee70a2c /tests | |
| parent | b7cefeccf5e179117054ae6793ef5502e2cc4e4f (diff) | |
| download | libalabaster-7e9e479502e6d56057aac066b61336d0013b6a7a.tar.gz libalabaster-7e9e479502e6d56057aac066b61336d0013b6a7a.tar.bz2 libalabaster-7e9e479502e6d56057aac066b61336d0013b6a7a.zip | |
array: Assert bounds
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/array.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/array.c b/tests/array.c index ddcc0d8..35b36e7 100644 --- a/tests/array.c +++ b/tests/array.c @@ -278,6 +278,11 @@ static bool array_test_insert(void) al_array_push(objects, (struct test_t){ .d = 9 }); al_array_push(objects, (struct test_t){ .d = 444 }); + //u32 iidx = 0; + //al_array_insert(objects, ++iidx, x); + //al_array_insert(objects, --iidx, y); + //al_array_insert(objects, ++iidx, z); + al_array_insert(objects, 1, x); al_array_insert(objects, 0, y); al_array_insert(objects, 1, z); |