diff options
Diffstat (limited to 't/stdin-no-operand')
| -rwxr-xr-x | t/stdin-no-operand | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/t/stdin-no-operand b/t/stdin-no-operand new file mode 100755 index 0000000..54a3cb4 --- /dev/null +++ b/t/stdin-no-operand @@ -0,0 +1,21 @@ +#!/bin/sh -e +. t/common.sh + +printf '%s\n' > file \ + "${HEAD} HEAD" \ + same \ + "${TAIL}" \ + same \ + "${END} branch" + +printf '%s\n' > file.expected \ + same + +cp -- file input +normal --reduce < input > output +cmp -s -- file input +diff -u -- output file.expected >&2 + +also_interactive r < input > output +cmp -s -- file input +diff -u -- output file.expected >&2 |
