Files
sporel-lib-core.actor-test/README.md
Axel Meyer 6920c0728d initial: actor-test v0.1.0 — 8 assertions
Phase-A.5 test-lib for lib-core.actor. Covers create-validation
(missing/zero movement_speed loud-errors + valid spec), position
(initial x/y), move ((0,0) no-op + additive delta), movement_speed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-09 13:57:22 +00:00

28 lines
809 B
Markdown

# lib-core.actor-test
Test-lib for `lib-core.actor` v0.1.0. Follows the P.2.4 Test-Module-
Pattern: exports `run_tests(ctx)` invoked by the engine's `--test-libs`
runner; uses `engine.test.*` for TAP-style output.
**Version:** 0.1.0
**Lib-ID:** lib-core.actor-test
**Role:** test
**Requires:** lib-core.actor v0.1.0, lib-core.composition v0.1.0
**Tags:** test, actor
## Coverage (8 assertions)
| Group | Count | What |
|---|---|---|
| `create` validation | 3 | missing-movement_speed error, zero-movement_speed error, valid-spec returns handle |
| `position` | 2 | initial x, initial y |
| `move` | 2 | (0,0) is no-op, additive delta updates position |
| `movement_speed` | 1 | reads override value |
## Run
```bash
~/Projects/Sporel/sporel-engine/build/sporel \
--test-libs=lib-core.actor-test
```