init
This commit is contained in:
16
tests/paser.test.ts
Normal file
16
tests/paser.test.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { test } from '@jest/globals'
|
||||
import { DemoParser } from '../samples/demoParser';
|
||||
test('demoParser', () => {
|
||||
const text = `FSTART
|
||||
TD 5
|
||||
G0 X100 Y100 Z10 F8000
|
||||
g0 x100 y100 z18 f8000
|
||||
g2 x120 y120 z18 R20 f8000
|
||||
g3 x100 y100 z18 i20 j0 f8000
|
||||
TN T2
|
||||
FEND
|
||||
`
|
||||
const demoParser = new DemoParser();
|
||||
const result = demoParser.execTest(text);
|
||||
console.log(result);
|
||||
})
|
Reference in New Issue
Block a user