test(sf-pnt.15.9): forge path acceptance, do not merge #8

Closed
computercrack-sandfortress-ci wants to merge 3 commits from computercrack-sandfortress-ci/demoa-8u5 into feature/sf-pnt-m1-walking-skeleton AGit

sanitizeCheckOutput replaced tabs with a single space instead of
expanding to 4-space terminal tab stops. boundedCheckOutput's split on
trailing newline produced an empty-string element that consumed a slot
in slice(-MAX_LINES), dropping the first of the last 30 content lines.

Co-Authored-By: Claude Code noreply@anthropic.com

sanitizeCheckOutput replaced tabs with a single space instead of expanding to 4-space terminal tab stops. boundedCheckOutput's split on trailing newline produced an empty-string element that consumed a slot in slice(-MAX_LINES), dropping the first of the last 30 content lines. Co-Authored-By: Claude Code <noreply@anthropic.com>
Add tests for the ticket that require every line in boundedCheckOutput
output to have trailing spaces and tabs stripped. Also exercises the
core boundedCheckOutput behaviour (line count cap, MAX_CHECK_OUTPUT
truncation, empty/whitespace inputs) to prevent regressions.

Co-Authored-By: Claude Code <noreply@anthropic.com>
boundedCheckOutput only trimmed the end of the whole string, leaving
trailing spaces and tabs at line ends. Map each line through trimEnd()
before taking the tail, then trim the final result.

Refs: demoa-8u5
sanitizeCheckOutput replaced tabs with a single space instead of
expanding to 4-space terminal tab stops. boundedCheckOutput's split on
trailing newline produced an empty-string element that consumed a slot
in slice(-MAX_LINES), dropping the first of the last 30 content lines.

Co-Authored-By: Claude Code <noreply@anthropic.com>

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ComputerCrack/Sandfortress!8
No description provided.