make test more meme worthy
This commit is contained in:
@ -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 },
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -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");
|
|
||||||
|
Reference in New Issue
Block a user