1
0
forked from GitHub/gf-core

update the JavaScript tests

This commit is contained in:
krangelov
2021-12-09 10:07:21 +01:00
parent 7bbdbbe917
commit 5b324faeec

View File

@@ -177,7 +177,7 @@ describe('abstract syntax', () => {
})
test('functions', () => {
expect(gr.getFunctions()).toEqual(['c', 'ind', 's', 'z'])
expect(gr.getFunctions()).toEqual(['c', 'floatLit', 'ind', 'intLit', 's', 'stringLit', 'z'])
})
describe('function is constructor', () => {
@@ -200,7 +200,7 @@ describe('abstract syntax', () => {
expect(gr.functionsByCategory('N')).toEqual(['s', 'z'])
})
test('S', () => {
expect(gr.functionsByCategory('S')).toEqual(['c'])
expect(gr.functionsByCategory('S')).toEqual(['c', 'floatLit', 'intLit', 'stringLit'])
})
test('X', () => {
expect(gr.functionsByCategory('X')).toEqual([])