mirror of
https://github.com/remko/waforth
synced 2025-01-30 08:34:58 +01:00
Add test for CREATE
This commit is contained in:
parent
eb97d29d90
commit
17504b31e4
1 changed files with 7 additions and 0 deletions
|
@ -1108,6 +1108,13 @@ function loadTests(wasmModule) {
|
|||
run("HERE");
|
||||
expect(stack[0] % 4).to.eql(0);
|
||||
});
|
||||
|
||||
it("should assign default semantics to created words", () => {
|
||||
run("CREATE DUP");
|
||||
run("HERE");
|
||||
run("DUP");
|
||||
expect(stack[0]).to.eql(stack[1]);
|
||||
});
|
||||
});
|
||||
|
||||
describe("IMMEDIATE", () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue