test: add object field CHECK TYPE NUMBER negative fixture
This commit is contained in:
@@ -193,7 +193,7 @@ Object Player has no field nickname. Check the field name or add HAS nickname TE
|
||||
Object Player has no field ready. Check the field name or add HAS ready YESNO to the class.
|
||||
```
|
||||
|
||||
Direct object-field `CHECK TYPE` metadata mismatches are validated for TEXT and YESNO fields too. For example, after `HAS ready YESNO` and `SET player.ready YES`, `CHECK TYPE player.ready IS TEXT` reports:
|
||||
Direct object-field `CHECK TYPE` metadata mismatches are validated for NUMBER, TEXT, and YESNO fields too. For example, after `HAS ready YESNO` and `SET player.ready YES`, `CHECK TYPE player.ready IS TEXT` reports:
|
||||
|
||||
```text
|
||||
Type check failed: expected TEXT, but player.ready looks like YESNO.
|
||||
|
||||
Reference in New Issue
Block a user