参考所有分组,完成尽量多的内容:结论为 native RS274 补齐注释百分号错误覆盖
This commit is contained in:
@@ -300,6 +300,8 @@ done
|
|||||||
# numbers, and non-leading ATAN argument slashes.
|
# numbers, and non-leading ATAN argument slashes.
|
||||||
bad_character_error_cases=(
|
bad_character_error_cases=(
|
||||||
"linuxcnc_bad_character_bang_error|Bad character '!' used"
|
"linuxcnc_bad_character_bang_error|Bad character '!' used"
|
||||||
|
"linuxcnc_commented_percent_error|Bad character '%' used"
|
||||||
|
"linuxcnc_mid_program_percent_error|Bad character '%' used"
|
||||||
"linuxcnc_bad_character_middle_n_word_error|Bad character 'n' used"
|
"linuxcnc_bad_character_middle_n_word_error|Bad character 'n' used"
|
||||||
"linuxcnc_comment_prefixed_n_word_error|Bad character 'n' used"
|
"linuxcnc_comment_prefixed_n_word_error|Bad character 'n' used"
|
||||||
"linuxcnc_comment_prefixed_spaced_n_word_error|Bad character 'n' used"
|
"linuxcnc_comment_prefixed_spaced_n_word_error|Bad character 'n' used"
|
||||||
@@ -328,11 +330,14 @@ done
|
|||||||
# Source basis: LinuxCNC src/emc/rs274ngc/interp_read.cc read_text()
|
# Source basis: LinuxCNC src/emc/rs274ngc/interp_read.cc read_text()
|
||||||
# rejects EOF without the matching percent/program end and overlong file
|
# rejects EOF without the matching percent/program end and overlong file
|
||||||
# lines; read_n_number() rejects malformed N-line numbers through
|
# lines; read_n_number() rejects malformed N-line numbers through
|
||||||
# read_integer_unsigned().
|
# read_integer_unsigned(); src/emc/rs274ngc/interp_internal.cc
|
||||||
|
# close_and_downcase() rejects unclosed and nested parenthesis comments.
|
||||||
read_text_error_cases=(
|
read_text_error_cases=(
|
||||||
"linuxcnc_file_ended_no_program_end_error|File ended with no percent sign"
|
"linuxcnc_file_ended_no_program_end_error|File ended with no percent sign"
|
||||||
"linuxcnc_file_ended_no_percent_error|File ended with no percent sign"
|
"linuxcnc_file_ended_no_percent_error|File ended with no percent sign"
|
||||||
"linuxcnc_bad_n_number_format_error|Bad format unsigned integer"
|
"linuxcnc_bad_n_number_format_error|Bad format unsigned integer"
|
||||||
|
"linuxcnc_unclosed_comment_error|Unclosed comment found"
|
||||||
|
"linuxcnc_nested_comment_error|Nested comment found"
|
||||||
)
|
)
|
||||||
for case in "${read_text_error_cases[@]}"; do
|
for case in "${read_text_error_cases[@]}"; do
|
||||||
fixture=${case%%|*}
|
fixture=${case%%|*}
|
||||||
|
|||||||
Reference in New Issue
Block a user