about summary refs log tree commit diff
path: root/t
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-12-17 00:45:59 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-12-17 00:45:59 +0100
commit5e9f8c0865f99fe4d614dc69c82eb1ca74ec363e (patch)
tree4e793f868195ed1aecddb5169b2fdd131fc3b478 /t
parent3d937d13bf77a2cda41a0a9ba8fc6d1e7885cf70 (diff)
downloadrnl-5e9f8c0865f99fe4d614dc69c82eb1ca74ec363e.tar.gz
rnl-5e9f8c0865f99fe4d614dc69c82eb1ca74ec363e.tar.xz
rnl-5e9f8c0865f99fe4d614dc69c82eb1ca74ec363e.zip
rename arguments
Diffstat (limited to 't')
-rwxr-xr-xt/0.t63
-rwxr-xr-xt/1.t76
-rwxr-xr-xt/a.t63
-rwxr-xr-xt/o.t76
4 files changed, 139 insertions, 139 deletions
diff --git a/t/0.t b/t/0.t
deleted file mode 100755
index c6e999c..0000000
--- a/t/0.t
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-
-export "PATH=.:$PATH"
-
-printf '1..11\n'
-printf '# error handling\n'
-
-tap3 '-0 on a pipe, no newlines' <<'EOF'
-printf foo | rnl -0 | wc -c
->>>/3/
-EOF
-
-tap3 '-0 on a pipe, one newline' <<'EOF'
-printf 'foo\n' | rnl -0 | wc -c
->>>/3/
-EOF
-
-tap3 '-0 on a pipe, two newlines' <<'EOF'
-printf 'foo\nbar\n\n' | rnl -0 | wc -c
->>>/7/
-EOF
-
-tap3 '-0 on a pipe, three newlines' <<'EOF'
-printf 'foo\n\nbar\n\n\n' | rnl -0 | wc -c
->>>/8/
-EOF
-
-tap3 '-0 on a pipe, 9999 newlines' <<'EOF'
-( printf 'foo'; yes '' | sed 10000q ) | rnl -0 | wc -c
->>>/3/
-EOF
-
-
-
-tap3 '-0 on a file, no newlines' <<'EOF'
-printf foo > TMP; rnl -0 TMP; wc -c <TMP; rm TMP
->>>/3/
-EOF
-
-tap3 '-0 on a file, one newline' <<'EOF'
-printf 'foo\n' > TMP; rnl -0 TMP; wc -c <TMP; rm TMP
->>>/3/
-EOF
-
-tap3 '-0 on a file, two newlines' <<'EOF'
-printf 'foo\nbar\n\n' > TMP; rnl -0 TMP; wc -c <TMP; rm TMP
->>>/7/
-EOF
-
-tap3 '-0 on a file, three newlines' <<'EOF'
-printf 'foo\n\nbar\n\n\n' > TMP; rnl -0 TMP; wc -c <TMP; rm TMP
->>>/8/
-EOF
-
-tap3 '-0 on a file, 9999 newlines' <<'EOF'
-( printf 'foo'; yes '' | sed 10000q ) > TMP; rnl -0 TMP; wc -c <TMP; rm TMP
->>>/3/
-EOF
-
-tap3 '-0 on a biggish file, 9999 newlines' <<'EOF'
-( yes 'foo' | sed 10000q; yes '' | sed 10000q ) > TMP; rnl -0 TMP; wc -c <TMP; rm TMP
->>>/39999/
-EOF
diff --git a/t/1.t b/t/1.t
deleted file mode 100755
index 34611af..0000000
--- a/t/1.t
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-
-export "PATH=.:$PATH"
-
-printf '1..11\n'
-printf '# error handling\n'
-
-tap3 '-1 on a pipe, no newlines' <<'EOF'
-printf foo | rnl -1
->>>/foo/
-EOF
-
-tap3 '-1 on a pipe, one newline' <<'EOF'
-printf 'foo\n' | rnl -1 | wc -c
->>>/3/
-EOF
-
-tap3 '-1 on a pipe, two newlines' <<'EOF'
-printf 'foo\nbar\n\n' | rnl -1
->>>
-foo
-bar
-EOF
-
-tap3 '-1 on a pipe, three newlines' <<'EOF'
-printf 'foo\n\nbar\n\n\n' | rnl -1
->>>
-foo
-
-bar
-
-EOF
-
-tap3 '-1 on a pipe, 9999 newlines' <<'EOF'
-( printf 'foo'; yes '' | sed 10000q ) | rnl -1 | wc -l
->>>/9999/
-EOF
-
-
-
-tap3 '-1 on a file, no newlines' <<'EOF'
-printf foo > TMP; rnl -1 TMP; cat TMP; rm TMP
->>>/foo/
-EOF
-
-tap3 '-1 on a file, one newline' <<'EOF'
-printf 'foo\n' > TMP; rnl -1 TMP; wc -c TMP; rm TMP
->>>/3/
-EOF
-
-tap3 '-1 on a file, two newlines' <<'EOF'
-printf 'foo\nbar\n\n' > TMP; rnl -1 TMP; cat TMP; rm TMP
->>>
-foo
-bar
-EOF
-
-tap3 '-1 on a file, three newlines' <<'EOF'
-printf 'foo\n\nbar\n\n\n' > TMP; rnl -1 TMP; cat TMP; rm TMP
->>>
-foo
-
-bar
-
-EOF
-
-tap3 '-1 on a file, 9999 newlines' <<'EOF'
-( printf 'foo'; yes '' | sed 10000q ) > TMP; rnl -1 TMP; wc -l TMP; rm TMP
->>>/9999/
-EOF
-
-
-tap3 '-1 on a biggish file, 9999 newlines' <<'EOF'
-( yes 'foo' | sed 10000q; yes '' | sed 10000q ) > TMP; rnl -1 TMP; wc -l < TMP; rm TMP
->>>/19999/
-EOF
diff --git a/t/a.t b/t/a.t
new file mode 100755
index 0000000..99405f7
--- /dev/null
+++ b/t/a.t
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+export "PATH=.:$PATH"
+
+printf '1..11\n'
+printf '# error handling\n'
+
+tap3 '-a on a pipe, no newlines' <<'EOF'
+printf foo | rnl -a | wc -c
+>>>/3/
+EOF
+
+tap3 '-a on a pipe, one newline' <<'EOF'
+printf 'foo\n' | rnl -a | wc -c
+>>>/3/
+EOF
+
+tap3 '-a on a pipe, two newlines' <<'EOF'
+printf 'foo\nbar\n\n' | rnl -a | wc -c
+>>>/7/
+EOF
+
+tap3 '-a on a pipe, three newlines' <<'EOF'
+printf 'foo\n\nbar\n\n\n' | rnl -a | wc -c
+>>>/8/
+EOF
+
+tap3 '-a on a pipe, 9999 newlines' <<'EOF'
+( printf 'foo'; yes '' | sed 10000q ) | rnl -a | wc -c
+>>>/3/
+EOF
+
+
+
+tap3 '-a on a file, no newlines' <<'EOF'
+printf foo > TMP; rnl -a TMP; wc -c <TMP; rm TMP
+>>>/3/
+EOF
+
+tap3 '-a on a file, one newline' <<'EOF'
+printf 'foo\n' > TMP; rnl -a TMP; wc -c <TMP; rm TMP
+>>>/3/
+EOF
+
+tap3 '-a on a file, two newlines' <<'EOF'
+printf 'foo\nbar\n\n' > TMP; rnl -a TMP; wc -c <TMP; rm TMP
+>>>/7/
+EOF
+
+tap3 '-a on a file, three newlines' <<'EOF'
+printf 'foo\n\nbar\n\n\n' > TMP; rnl -a TMP; wc -c <TMP; rm TMP
+>>>/8/
+EOF
+
+tap3 '-a on a file, 9999 newlines' <<'EOF'
+( printf 'foo'; yes '' | sed 10000q ) > TMP; rnl -a TMP; wc -c <TMP; rm TMP
+>>>/3/
+EOF
+
+tap3 '-a on a biggish file, 9999 newlines' <<'EOF'
+( yes 'foo' | sed 10000q; yes '' | sed 10000q ) > TMP; rnl -a TMP; wc -c <TMP; rm TMP
+>>>/39999/
+EOF
diff --git a/t/o.t b/t/o.t
new file mode 100755
index 0000000..78ec064
--- /dev/null
+++ b/t/o.t
@@ -0,0 +1,76 @@
+#!/bin/sh
+
+export "PATH=.:$PATH"
+
+printf '1..11\n'
+printf '# error handling\n'
+
+tap3 '-o on a pipe, no newlines' <<'EOF'
+printf foo | rnl -o
+>>>/foo/
+EOF
+
+tap3 '-o on a pipe, one newline' <<'EOF'
+printf 'foo\n' | rnl -o | wc -c
+>>>/3/
+EOF
+
+tap3 '-o on a pipe, two newlines' <<'EOF'
+printf 'foo\nbar\n\n' | rnl -o
+>>>
+foo
+bar
+EOF
+
+tap3 '-o on a pipe, three newlines' <<'EOF'
+printf 'foo\n\nbar\n\n\n' | rnl -o
+>>>
+foo
+
+bar
+
+EOF
+
+tap3 '-o on a pipe, 9999 newlines' <<'EOF'
+( printf 'foo'; yes '' | sed 10000q ) | rnl -o | wc -l
+>>>/9999/
+EOF
+
+
+
+tap3 '-o on a file, no newlines' <<'EOF'
+printf foo > TMP; rnl -o TMP; cat TMP; rm TMP
+>>>/foo/
+EOF
+
+tap3 '-o on a file, one newline' <<'EOF'
+printf 'foo\n' > TMP; rnl -o TMP; wc -c TMP; rm TMP
+>>>/3/
+EOF
+
+tap3 '-o on a file, two newlines' <<'EOF'
+printf 'foo\nbar\n\n' > TMP; rnl -o TMP; cat TMP; rm TMP
+>>>
+foo
+bar
+EOF
+
+tap3 '-o on a file, three newlines' <<'EOF'
+printf 'foo\n\nbar\n\n\n' > TMP; rnl -o TMP; cat TMP; rm TMP
+>>>
+foo
+
+bar
+
+EOF
+
+tap3 '-o on a file, 9999 newlines' <<'EOF'
+( printf 'foo'; yes '' | sed 10000q ) > TMP; rnl -o TMP; wc -l TMP; rm TMP
+>>>/9999/
+EOF
+
+
+tap3 '-o on a biggish file, 9999 newlines' <<'EOF'
+( yes 'foo' | sed 10000q; yes '' | sed 10000q ) > TMP; rnl -o TMP; wc -l < TMP; rm TMP
+>>>/19999/
+EOF