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>
This commit is contained in:
27
README.md
Normal file
27
README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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
|
||||
```
|
||||
Reference in New Issue
Block a user