Browse Source

add test for \n

feature/coolkids
mark 6 months ago
parent
commit
0385320405
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      test/memeforth.test.js

+ 4
- 0
test/memeforth.test.js View File

@@ -67,6 +67,10 @@ describe("interpreter", () => {
it("should add spaces with SPACE", () => {
expect(mf.run("SPACE").stack.stackArr).to.eql([" "])
});

it("should add newlines with \\n", () => {
expect(mf.run("\\n").stack.stackArr).to.eql(["\n"])
});
});

describe("comparison", () => {


Loading…
Cancel
Save