20 lines
430 B
Bash
Executable File
20 lines
430 B
Bash
Executable File
#!/bin/bash
|
|
# test_rebase_parser_with_comments.sh - Valid rebase with comments ignored
|
|
|
|
test_name="valid_rebase_with_comments"
|
|
|
|
content="# This is a comment
|
|
pick 0 [user] hello
|
|
# Another comment
|
|
edit 1 [assistant] response"
|
|
|
|
OUTPUT=$("${DRHARNESS}" -z 3 "$content")
|
|
|
|
count=$(rebase_line_count "$OUTPUT")
|
|
if [ "$count" -ne 2 ]; then
|
|
echo "FAIL: $test_name - expected 2 lines, got $count"
|
|
exit 1
|
|
fi
|
|
|
|
echo "PASS: $test_name"
|