Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions exercises/forth/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,31 @@
},
"expected": [11]
},
{
"uuid": "3ce7a6d1-8a01-48f3-9ee8-66ae48a7dac6",
"description": "can use built-in words as they were when the word was defined",
"property": "evaluate",
"input": {
"instructions": [
": sum + ;",
": + * ;",
"2 3 sum"
]
},
"expected": [5]
Comment on lines +527 to +533

@glennj glennj Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 5 sum 2 5 + with expected [7, 10] would be a bit more illustrative.

},
{
"uuid": "9972320e-dc7c-496e-a880-f09ea5009559",
"description": "can define word that uses built-in word with the same name",
"property": "evaluate",
"input": {
"instructions": [
": dup dup dup ;",
"1 dup"
]
},
"expected": [1, 1, 1]
},
{
"uuid": "35958cee-a976-4a0f-9378-f678518fa322",
"description": "cannot redefine non-negative numbers",
Expand Down
Loading