da919f9f6e
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)
24 lines
625 B
Bash
24 lines
625 B
Bash
#!/bin/bash
|
|
# test_edit_prompt_multiline_context.sh - Test multi-line content in context shows full content
|
|
|
|
test_name="multiline_context"
|
|
|
|
json=$(create_history_json user $'line one\nline two' assistant "response")
|
|
|
|
OUTPUT=$("${DRHARNESS}" -W "$json" "1" "assistant")
|
|
|
|
# Both lines should appear in context
|
|
if ! echo "$OUTPUT" | grep -q "line one"; then
|
|
echo "FAIL: $test_name - first line of context missing"
|
|
echo "Got: $OUTPUT"
|
|
exit 1
|
|
fi
|
|
|
|
if ! echo "$OUTPUT" | grep -q "line two"; then
|
|
echo "FAIL: $test_name - second line of context missing"
|
|
echo "Got: $OUTPUT"
|
|
exit 1
|
|
fi
|
|
|
|
echo "PASS: $test_name"
|