test: cover numeric method return subtraction

This commit is contained in:
Hermes Agent
2026-09-12 08:08:58 +00:00
parent ce28a6eb1c
commit 1fc8e72c1d
4 changed files with 14 additions and 0 deletions
@@ -0,0 +1,11 @@
CLASS Player
HAS score NUMBER
TEACH total amount RETURNS NUMBER
CHECK TYPE amount IS NUMBER
RETURN amount - 2
END
END
NEW Player player
DO player.total 3