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
654 B
Bash
Executable File
24 lines
654 B
Bash
Executable File
#!/bin/bash
|
|
# test_rebase_content_unicode_characters.sh - Test unicode characters in content
|
|
|
|
test_name="unicode_characters"
|
|
|
|
json=$(create_messages_json user "こんにちは" assistant "👋 hello 世界")
|
|
|
|
OUTPUT=$("${DRHARNESS}" -Z "$json")
|
|
|
|
# Should preserve unicode characters
|
|
if ! echo "$OUTPUT" | grep -q "pick 0 \[user\] こんにちは"; then
|
|
echo "FAIL: $test_name - should preserve unicode"
|
|
echo "Got: $OUTPUT"
|
|
exit 1
|
|
fi
|
|
|
|
if ! echo "$OUTPUT" | grep -q "pick 1 \[assistant\] 👋 hello 世界"; then
|
|
echo "FAIL: $test_name - should preserve unicode emoji and CJK"
|
|
echo "Got: $OUTPUT"
|
|
exit 1
|
|
fi
|
|
|
|
echo "PASS: $test_name"
|