Test for bug424
This exercises the three possibilities that can come after a # <name> unary or binary operator integer
This commit is contained in:
parent
c4baeceb5f
commit
1b33be6aef
4 changed files with 24 additions and 0 deletions
1
tests/interp/namedparam-bug424/README
Normal file
1
tests/interp/namedparam-bug424/README
Normal file
|
|
@ -0,0 +1 @@
|
|||
test for http://sourceforge.net/p/emc/bugs/424/
|
||||
14
tests/interp/namedparam-bug424/expected
Normal file
14
tests/interp/namedparam-bug424/expected
Normal 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()
|
||||
6
tests/interp/namedparam-bug424/test.ngc
Normal file
6
tests/interp/namedparam-bug424/test.ngc
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
g20
|
||||
#<a>=2
|
||||
#atan[1]/[1]=3
|
||||
#3=4
|
||||
g0 x#<a> y#45 z#3
|
||||
m2
|
||||
3
tests/interp/namedparam-bug424/test.sh
Normal file
3
tests/interp/namedparam-bug424/test.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
rs274 -g test.ngc | awk '{$1=""; print}'
|
||||
exit ${PIPESTATUS[0]}
|
||||
Loading…
Reference in a new issue