21 lines
416 B
Bash
Executable File
21 lines
416 B
Bash
Executable File
#!/bin/bash
|
|
# test_rebase_parser_with_empty_lines.sh - Valid rebase with empty lines
|
|
|
|
test_name="valid_rebase_with_empty_lines"
|
|
|
|
content="pick 0 [user] hello
|
|
|
|
edit 1 [assistant] response
|
|
|
|
drop 2 [tool] result"
|
|
|
|
OUTPUT=$("${DRHARNESS}" -z 3 "$content")
|
|
|
|
count=$(rebase_line_count "$OUTPUT")
|
|
if [ "$count" -ne 3 ]; then
|
|
echo "FAIL: $test_name - expected 3 lines, got $count"
|
|
exit 1
|
|
fi
|
|
|
|
echo "PASS: $test_name"
|