mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
update the JavaScript tests
This commit is contained in:
@@ -177,7 +177,7 @@ describe('abstract syntax', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('functions', () => {
|
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', () => {
|
describe('function is constructor', () => {
|
||||||
@@ -200,7 +200,7 @@ describe('abstract syntax', () => {
|
|||||||
expect(gr.functionsByCategory('N')).toEqual(['s', 'z'])
|
expect(gr.functionsByCategory('N')).toEqual(['s', 'z'])
|
||||||
})
|
})
|
||||||
test('S', () => {
|
test('S', () => {
|
||||||
expect(gr.functionsByCategory('S')).toEqual(['c'])
|
expect(gr.functionsByCategory('S')).toEqual(['c', 'floatLit', 'intLit', 'stringLit'])
|
||||||
})
|
})
|
||||||
test('X', () => {
|
test('X', () => {
|
||||||
expect(gr.functionsByCategory('X')).toEqual([])
|
expect(gr.functionsByCategory('X')).toEqual([])
|
||||||
|
|||||||
Reference in New Issue
Block a user