make test more meme worthy

This commit is contained in:
Kurt Hutten IrevDev
2022-11-20 09:56:18 +11:00
parent 082730bb2e
commit e5a527b519
2 changed files with 3 additions and 5 deletions

View File

@ -58,12 +58,12 @@ log(5, myVar)`;
"fn funcN = (a, b) => {", "fn funcN = (a, b) => {",
" return a + b", " return a + b",
"}", "}",
"const theVar = 5", "const theVar = 60",
"const myVar = funcN(1, theVar)", "const magicNum = funcN(9, theVar)",
].join("\n") ].join("\n")
); );
expect(withoutStdFns(programMemory, ["funcN"])).toEqual({ expect(withoutStdFns(programMemory, ["funcN"])).toEqual({
root: { theVar: 5, myVar: 6 }, root: { theVar: 60, magicNum: 69 },
}); });
}); });
}); });

View File

@ -98,5 +98,3 @@ export const lexer = (str: string): Token[] => {
}; };
return recursivelyTokenise(str); return recursivelyTokenise(str);
}; };
// const example1 = await fsp.readFile("./examples/addition.cado", "ascii");