mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-11 13:59:31 -06:00
update the JavaScript tests
This commit is contained in:
@@ -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([])
|
||||
|
||||
Reference in New Issue
Block a user