diff options
Diffstat (limited to 'lambda-calcul/javascript/test/parser.test.js')
| -rw-r--r-- | lambda-calcul/javascript/test/parser.test.js | 9 |
1 files changed, 9 insertions, 0 deletions
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')); + }); +}); |
