Commit Graph

2 Commits

Author SHA1 Message Date
Bob Nystrom
3c3fa2bfd9 feat: add list clear and insert primitives with capacity growth and index validation
Extract inline list growth logic into `ensureListCapacity` helper and add `validateIndex` function supporting negative indices. Implement `list_clear` primitive that resets count to zero without freeing memory, and `list_insert` primitive that shifts elements right and inserts at validated position. Add comprehensive test suites for both operations covering empty lists, normal/negative indices, and return values.
2013-11-27 07:11:11 +00:00
Bob Nystrom
91c675b28a chore: reorganize test files into domain-specific subdirectories
- Moved unit tests for user authentication into `tests/unit/auth/`
- Relocated integration tests for payment processing to `tests/integration/payments/`
- Grouped API endpoint tests under `tests/api/` with separate files for each resource
- Updated test runner configuration to discover tests in new directory structure
2013-11-27 06:52:00 +00:00