Add test for CREATE

This commit is contained in:
Remko Tronçon 2019-03-10 11:10:19 +01:00
parent eb97d29d90
commit 17504b31e4

View file

@ -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", () => {