参考所有分组,完成尽量多的内容:结论为 native RS274 补齐注释百分号错误覆盖

This commit is contained in:
cnc
2026-06-03 22:37:13 +08:00
parent f8902b3f8d
commit 6f21d22912

View File

@@ -300,6 +300,8 @@ done
# numbers, and non-leading ATAN argument slashes.
bad_character_error_cases=(
"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_comment_prefixed_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()
# rejects EOF without the matching percent/program end and overlong file
# 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=(
"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_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
fixture=${case%%|*}