cut-abstractions/tests/paser.test.ts
2025-06-24 11:48:26 +08:00

16 lines
376 B
TypeScript

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);
})