继续按 align-linuxcnc 约束:补 G 代码校验错误源码覆盖,测试通过
This commit is contained in:
3
tests/gcode/linuxcnc_g10_invalid_l_error.ngc
Normal file
3
tests/gcode/linuxcnc_g10_invalid_l_error.ngc
Normal file
@@ -0,0 +1,3 @@
|
||||
G21 G90 G17
|
||||
G10 L3 P1 X1
|
||||
M30
|
||||
3
tests/gcode/linuxcnc_g10_l1_p_out_of_range_error.ngc
Normal file
3
tests/gcode/linuxcnc_g10_l1_p_out_of_range_error.ngc
Normal file
@@ -0,0 +1,3 @@
|
||||
G21 G90 G17
|
||||
G10 L1 P0 X1
|
||||
M30
|
||||
3
tests/gcode/linuxcnc_g10_l2_p_out_of_range_error.ngc
Normal file
3
tests/gcode/linuxcnc_g10_l2_p_out_of_range_error.ngc
Normal file
@@ -0,0 +1,3 @@
|
||||
G21 G90 G17
|
||||
G10 L2 P10 X1
|
||||
M30
|
||||
3
tests/gcode/linuxcnc_g10_p_non_integer_error.ngc
Normal file
3
tests/gcode/linuxcnc_g10_p_non_integer_error.ngc
Normal file
@@ -0,0 +1,3 @@
|
||||
G21 G90 G17
|
||||
G10 L2 P1.2 X1
|
||||
M30
|
||||
3
tests/gcode/linuxcnc_g4_arc_p_conflict_error.ngc
Normal file
3
tests/gcode/linuxcnc_g4_arc_p_conflict_error.ngc
Normal file
@@ -0,0 +1,3 @@
|
||||
G21 G90 G17
|
||||
G2 G4 X1 Y0 I0 J1 P1
|
||||
M30
|
||||
3
tests/gcode/linuxcnc_g4_missing_p_error.ngc
Normal file
3
tests/gcode/linuxcnc_g4_missing_p_error.ngc
Normal file
@@ -0,0 +1,3 @@
|
||||
G21 G90 G17
|
||||
G4
|
||||
M30
|
||||
3
tests/gcode/linuxcnc_g53_arc_error.ngc
Normal file
3
tests/gcode/linuxcnc_g53_arc_error.ngc
Normal file
@@ -0,0 +1,3 @@
|
||||
G21 G90 G17
|
||||
G53 G2 X1 Y0 I0 J1
|
||||
M30
|
||||
3
tests/gcode/linuxcnc_g53_incremental_error.ngc
Normal file
3
tests/gcode/linuxcnc_g53_incremental_error.ngc
Normal file
@@ -0,0 +1,3 @@
|
||||
G21 G91 G17
|
||||
G53 G0 X1
|
||||
M30
|
||||
Reference in New Issue
Block a user