You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: update test assertions to match renamed comment terminology
The PR renamed CMT-specific terminology to generic "comment" terminology
in both refine-plan.md and validate-refine-plan-io.sh, but the test
assertions in test-refine-plan.sh still referenced the old text. Update
all 9 affected assertions to match the current documentation and error
messages.
assert_file_contains "$REFINE_PLAN_CMD"'- Exit code 1: Report `Input file not found` and stop'"refine-plan.md documents validator exit code 1"
708
708
assert_file_contains "$REFINE_PLAN_CMD"'- Exit code 2: Report `Input file is empty` and stop'"refine-plan.md documents validator exit code 2"
709
-
assert_file_contains "$REFINE_PLAN_CMD"'- Exit code 3: Report `Input file has no CMT:/ENDCMT blocks` and stop'"refine-plan.md documents validator exit code 3"
709
+
assert_file_contains "$REFINE_PLAN_CMD"'- Exit code 3: Report `Input file has no comment blocks` and stop'"refine-plan.md documents validator exit code 3"
710
710
assert_file_contains "$REFINE_PLAN_CMD"'- Exit code 4: Report `Input file is missing required gen-plan sections` and stop'"refine-plan.md documents validator exit code 4"
711
711
assert_file_contains "$REFINE_PLAN_CMD"'- Exit code 5: Report `Output directory does not exist or is not writable - please fix it` and stop'"refine-plan.md documents validator exit code 5"
712
712
assert_file_contains "$REFINE_PLAN_CMD"'- Exit code 6: Report `QA directory is not writable` and stop'"refine-plan.md documents validator exit code 6"
713
713
assert_file_contains "$REFINE_PLAN_CMD"'- Exit code 7: Report `Invalid arguments` and show the validator usage, then stop'"refine-plan.md documents validator exit code 7"
714
714
715
715
echo""
716
716
echo"PT-5: Comment extraction requirements"
717
-
assert_file_contains "$REFINE_PLAN_CMD""Support both inline and multi-line blocks:""refine-plan.md supports inline and multiline comment extraction"
717
+
assert_file_contains "$REFINE_PLAN_CMD""Support both inline and multi-line blocks for all formats:""refine-plan.md supports inline and multiline comment extraction"
718
718
assert_file_contains "$REFINE_PLAN_CMD"'Inline: `Text before CMT: comment text ENDCMT text after`'"refine-plan.md documents single-line comment extraction"
719
719
assert_file_contains "$REFINE_PLAN_CMD""CMT:""refine-plan.md includes multiline comment marker example"
assert_file_contains "$REFINE_PLAN_CMD"'Ignore comment markers inside HTML comments.'"refine-plan.md documents HTML comment exclusion"
722
722
assert_file_contains "$REFINE_PLAN_CMD""Preserve surrounding non-comment text when removing inline comment blocks from the working plan text.""refine-plan.md preserves inline surrounding text"
723
723
assert_file_contains "$REFINE_PLAN_CMD"'- `nearest_heading` or `Preamble` when no heading exists yet'"refine-plan.md records nearest heading or Preamble"
724
724
assert_file_contains "$REFINE_PLAN_CMD"'- `location_label` for QA output'"refine-plan.md records location labels"
725
725
assert_file_contains "$REFINE_PLAN_CMD"'- `form` = `inline` or `multiline`'"refine-plan.md records comment form"
726
726
assert_file_contains "$REFINE_PLAN_CMD"'- `context_excerpt` from the nearest non-comment source text'"refine-plan.md records context excerpts"
727
-
assert_file_contains "$REFINE_PLAN_CMD"'Nested `CMT:` while already inside a comment block'"refine-plan.md documents nested CMT parse errors"
728
-
assert_file_contains "$REFINE_PLAN_CMD"'`ENDCMT` encountered while not inside a comment block'"refine-plan.md documents stray ENDCMT parse errors"
727
+
assert_file_contains "$REFINE_PLAN_CMD"'Nested comment start marker while already inside a comment block'"refine-plan.md documents nested CMT parse errors"
728
+
assert_file_contains "$REFINE_PLAN_CMD"'Comment end marker encountered while not inside a comment block or wrong end marker for the format'"refine-plan.md documents stray ENDCMT parse errors"
729
729
assert_file_contains "$REFINE_PLAN_CMD""End of file reached while still inside a comment block""refine-plan.md documents missing ENDCMT parse errors"
0 commit comments