This commit is contained in:
xief
2025-06-24 11:48:26 +08:00
commit 305a30372a
16 changed files with 4325 additions and 0 deletions

16
tests/paser.test.ts Normal file
View 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);
})