参考所有分组:补 G10 tool source 覆盖,测试通过
This commit is contained in:
@@ -241,7 +241,11 @@ done
|
||||
# convert_setup() rejects disallowed G10 L2/L20 words, and
|
||||
# convert_tool_table() rejects G10 L1 table updates without offsets.
|
||||
g10_convert_error_cases=(
|
||||
"linuxcnc_g10_l1_missing_tool_error|Requested tool 999 not found in the tool table"
|
||||
"linuxcnc_g10_l1_without_offsets_error|G10 L1 without offsets has no effect"
|
||||
"linuxcnc_g10_l1_q_noninteger_error|Q number in G10 is not an integer"
|
||||
"linuxcnc_g10_l1_q_negative_error|Q number in G10 is not an integer"
|
||||
"linuxcnc_g10_l1_q_out_of_range_error|Invalid tool orientation"
|
||||
"linuxcnc_g10_l2_i_word_error|I J words not allowed with G10 L2"
|
||||
"linuxcnc_g10_l20_i_word_error|I J words not allowed with G10 L2"
|
||||
"linuxcnc_g10_l20_r_word_error|R not allowed in G10 L20"
|
||||
|
||||
@@ -685,7 +685,11 @@ done
|
||||
# convert_setup() rejects disallowed G10 L2/L20 words, and
|
||||
# convert_tool_table() rejects G10 L1 table updates without offsets.
|
||||
g10_convert_error_cases=(
|
||||
"linuxcnc_g10_l1_missing_tool_error|Requested tool 999 not found in the tool table"
|
||||
"linuxcnc_g10_l1_without_offsets_error|G10 L1 without offsets has no effect"
|
||||
"linuxcnc_g10_l1_q_noninteger_error|Q number in G10 is not an integer"
|
||||
"linuxcnc_g10_l1_q_negative_error|Q number in G10 is not an integer"
|
||||
"linuxcnc_g10_l1_q_out_of_range_error|Invalid tool orientation"
|
||||
"linuxcnc_g10_l2_i_word_error|I J words not allowed with G10 L2"
|
||||
"linuxcnc_g10_l20_i_word_error|I J words not allowed with G10 L2"
|
||||
"linuxcnc_g10_l20_r_word_error|R not allowed in G10 L20"
|
||||
|
||||
2
tests/gcode/linuxcnc_g10_l1_missing_tool_error.ngc
Normal file
2
tests/gcode/linuxcnc_g10_l1_missing_tool_error.ngc
Normal file
@@ -0,0 +1,2 @@
|
||||
G21 G90
|
||||
G10 L1 P999 X0
|
||||
2
tests/gcode/linuxcnc_g10_l1_q_negative_error.ngc
Normal file
2
tests/gcode/linuxcnc_g10_l1_q_negative_error.ngc
Normal file
@@ -0,0 +1,2 @@
|
||||
G21 G90
|
||||
G10 L1 P1 Q-2
|
||||
2
tests/gcode/linuxcnc_g10_l1_q_noninteger_error.ngc
Normal file
2
tests/gcode/linuxcnc_g10_l1_q_noninteger_error.ngc
Normal file
@@ -0,0 +1,2 @@
|
||||
G21 G90
|
||||
G10 L1 P1 Q1.5
|
||||
2
tests/gcode/linuxcnc_g10_l1_q_out_of_range_error.ngc
Normal file
2
tests/gcode/linuxcnc_g10_l1_q_out_of_range_error.ngc
Normal file
@@ -0,0 +1,2 @@
|
||||
G21 G90
|
||||
G10 L1 P1 Q10
|
||||
Reference in New Issue
Block a user