From 895e9a4fc2c1a427c55ebaafb5423d3db6e3dddc Mon Sep 17 00:00:00 2001 From: Emmanuel Gaillot Date: Sat, 20 Dec 2025 21:14:53 +0100 Subject: Solve retrieved challenge --- lambda-calcul/javascript/test/parser.test.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lambda-calcul/javascript/test/parser.test.js (limited to 'lambda-calcul/javascript/test/parser.test.js') diff --git a/lambda-calcul/javascript/test/parser.test.js b/lambda-calcul/javascript/test/parser.test.js new file mode 100644 index 0000000..e9cab60 --- /dev/null +++ b/lambda-calcul/javascript/test/parser.test.js @@ -0,0 +1,9 @@ +const { σ } = require('../src/internals'); +const { parse } = require('../src/parser'); + +describe('A parser', () => { + it('parses symbols', () => { + expect(parse('x')).toEqual(σ('x')); + expect(parse('y')).toEqual(σ('y')); + }); +}); -- cgit v1.3.1