diff options
| author | Mattias Andrée <m@maandree.se> | 2026-09-22 19:53:29 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-09-22 19:53:29 +0200 |
| commit | d8de1b23e8ec896759424a2f146969783cdd89e3 (patch) | |
| tree | ed1ea3e97add5116230fd2df34e42b829a70ab39 /t/null-bytes | |
| parent | fix doc text (diff) | |
| download | git-rediff-6c37173839fc23ca440e78fc1b1be4618faa2ad9.tar.gz git-rediff-6c37173839fc23ca440e78fc1b1be4618faa2ad9.tar.bz2 git-rediff-6c37173839fc23ca440e78fc1b1be4618faa2ad9.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 't/null-bytes')
| -rwxr-xr-x | t/null-bytes | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/null-bytes b/t/null-bytes new file mode 100755 index 0000000..9a7ee7f --- /dev/null +++ b/t/null-bytes @@ -0,0 +1,15 @@ +#!/bin/sh -e +. t/common.sh + +( + printf '%s\n' "${HEAD} ours" + printf 'same\000text\n' + printf '%s\n' "${TAIL}" + printf 'same\000text\n' + printf '%s\n' "${END} theirs" +) > file + +printf 'same\000text\n' > file.expected + +"$command" --reduce file +cmp -s -- file file.expected |
