Files
drharness/tests/test_rebase_parser_malformed_role.sh

20 lines
436 B
Bash
Executable File

#!/bin/bash
# test_rebase_parser_malformed_role.sh - Missing role brackets produces error
test_name="malformed_role"
content="pick 0 [user] hello
pick 1 assistant response"
set +e
OUTPUT=$("${DRHARNESS}" -z 3 "$content" 2>&1) || true
set -e
if ! echo "$OUTPUT" | grep -q "malformed role: 'assistant'"; then
echo "FAIL: $test_name - expected 'malformed role' error"
echo "Got: $OUTPUT"
exit 1
fi
echo "PASS: $test_name"