Test for bug424

This exercises the three possibilities that can come after a #

 <name>
 unary or binary operator
 integer
This commit is contained in:
Chris Radek 2018-03-19 22:17:18 -05:00
parent c4baeceb5f
commit 1b33be6aef
4 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1 @@
test for http://sourceforge.net/p/emc/bugs/424/

View file

@ -0,0 +1,14 @@
N..... USE_LENGTH_UNITS(CANON_UNITS_MM)
N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
N..... SET_XY_ROTATION(0.0000)
N..... SET_FEED_REFERENCE(CANON_XYZ)
N..... USE_LENGTH_UNITS(CANON_UNITS_INCHES)
N..... STRAIGHT_TRAVERSE(2.0000, 3.0000, 4.0000, 0.0000, 0.0000, 0.0000)
N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
N..... SET_XY_ROTATION(0.0000)
N..... SET_FEED_MODE(0)
N..... SET_FEED_RATE(0.0000)
N..... STOP_SPINDLE_TURNING()
N..... SET_SPINDLE_MODE(0.0000)
N..... PROGRAM_END()

View file

@ -0,0 +1,6 @@
g20
#<a>=2
#atan[1]/[1]=3
#3=4
g0 x#<a> y#45 z#3
m2

View file

@ -0,0 +1,3 @@
#!/bin/bash
rs274 -g test.ngc | awk '{$1=""; print}'
exit ${PIPESTATUS[0]}