Files
drharness/tests/test_edit_prompt_tool_role.sh
hal9000 da919f9f6e Merge origin/master into work branch (issue #169)
Resolved merge conflicts:
- CMakeLists.txt: Added both rebase_engine/utility and base64_util sources
- src/harness.cpp: Combined Content type with proper error handling
- src/main.cpp: Merged includes, test flags, and CLI parsing
  - Renamed conflicting flags: -B→-Z (build_rebase), -T→-W (edit_prompt), -b→-K (base64_decode)
- tests/CMakeLists.txt: Added all test targets from both branches
- src/rebase_engine.cpp: Fixed to use get_content_string() for Content variant type
- Updated test files to use new flag names (-Z, -W, -K)
2026-06-15 22:52:29 +00:00

18 lines
453 B
Bash

#!/bin/bash
# test_edit_prompt_tool_role.sh - Test edit with tool role
test_name="edit_tool_role"
json=$(create_history_json assistant "call tool" tool "result")
OUTPUT=$("${DRHARNESS}" -W "$json" "1" "tool")
# Check for tool role in edit prompt
if ! echo "$OUTPUT" | grep -q "Edit message 1 (role: tool) below:"; then
echo "FAIL: $test_name - should show tool role in edit prompt"
echo "Got: $OUTPUT"
exit 1
fi
echo "PASS: $test_name"