From 97b3abf5204badf60eb79be6be07285bdef83049 Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Wed, 13 Apr 2022 19:08:28 +0100 Subject: Rename test files for Windows compatibility --- test/choose_-4:-2.txt | 6 ------ test/choose_-4x-2.txt | 6 ++++++ test/choose_0:1.txt | 6 ------ test/choose_0x1.txt | 6 ++++++ test/choose_1:3of%.txt | 6 ------ test/choose_1x3of%.txt | 6 ++++++ test/choose_4:2.txt | 6 ------ test/choose_4x2.txt | 6 ++++++ test/choose_:1.txt | 6 ------ test/choose_x1.txt | 6 ++++++ test/e2e_test.sh | 10 +++++----- 11 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 test/choose_-4:-2.txt create mode 100644 test/choose_-4x-2.txt delete mode 100644 test/choose_0:1.txt create mode 100644 test/choose_0x1.txt delete mode 100644 test/choose_1:3of%.txt create mode 100644 test/choose_1x3of%.txt delete mode 100644 test/choose_4:2.txt create mode 100644 test/choose_4x2.txt delete mode 100644 test/choose_:1.txt create mode 100644 test/choose_x1.txt diff --git a/test/choose_-4:-2.txt b/test/choose_-4:-2.txt deleted file mode 100644 index 313a492..0000000 --- a/test/choose_-4:-2.txt +++ /dev/null @@ -1,6 +0,0 @@ -sed do eiusmod -ad minim veniam, -ex ea commodo -esse cillum dolore -non proident, sunt -anim id est diff --git a/test/choose_-4x-2.txt b/test/choose_-4x-2.txt new file mode 100644 index 0000000..313a492 --- /dev/null +++ b/test/choose_-4x-2.txt @@ -0,0 +1,6 @@ +sed do eiusmod +ad minim veniam, +ex ea commodo +esse cillum dolore +non proident, sunt +anim id est diff --git a/test/choose_0:1.txt b/test/choose_0:1.txt deleted file mode 100644 index 38b492a..0000000 --- a/test/choose_0:1.txt +++ /dev/null @@ -1,6 +0,0 @@ -Lorem ipsum -incididunt ut -nostrud exercitation -Duis aute -fugiat nulla -culpa qui diff --git a/test/choose_0x1.txt b/test/choose_0x1.txt new file mode 100644 index 0000000..38b492a --- /dev/null +++ b/test/choose_0x1.txt @@ -0,0 +1,6 @@ +Lorem ipsum +incididunt ut +nostrud exercitation +Duis aute +fugiat nulla +culpa qui diff --git a/test/choose_1:3of%.txt b/test/choose_1:3of%.txt deleted file mode 100644 index a0fa11f..0000000 --- a/test/choose_1:3of%.txt +++ /dev/null @@ -1,6 +0,0 @@ -ipsum%dolor%sit -ut%labore%et -exercitation%ullamco%laboris -aute%irure%dolor -nulla%pariatur.%Excepteur -qui%officia%deserunt diff --git a/test/choose_1x3of%.txt b/test/choose_1x3of%.txt new file mode 100644 index 0000000..a0fa11f --- /dev/null +++ b/test/choose_1x3of%.txt @@ -0,0 +1,6 @@ +ipsum%dolor%sit +ut%labore%et +exercitation%ullamco%laboris +aute%irure%dolor +nulla%pariatur.%Excepteur +qui%officia%deserunt diff --git a/test/choose_4:2.txt b/test/choose_4:2.txt deleted file mode 100644 index e441054..0000000 --- a/test/choose_4:2.txt +++ /dev/null @@ -1,6 +0,0 @@ -amet, sit dolor -dolore et labore -nisi laboris ullamco -in dolor irure -sint Excepteur pariatur. -mollit deserunt officia diff --git a/test/choose_4x2.txt b/test/choose_4x2.txt new file mode 100644 index 0000000..e441054 --- /dev/null +++ b/test/choose_4x2.txt @@ -0,0 +1,6 @@ +amet, sit dolor +dolore et labore +nisi laboris ullamco +in dolor irure +sint Excepteur pariatur. +mollit deserunt officia diff --git a/test/choose_:1.txt b/test/choose_:1.txt deleted file mode 100644 index 38b492a..0000000 --- a/test/choose_:1.txt +++ /dev/null @@ -1,6 +0,0 @@ -Lorem ipsum -incididunt ut -nostrud exercitation -Duis aute -fugiat nulla -culpa qui diff --git a/test/choose_x1.txt b/test/choose_x1.txt new file mode 100644 index 0000000..38b492a --- /dev/null +++ b/test/choose_x1.txt @@ -0,0 +1,6 @@ +Lorem ipsum +incididunt ut +nostrud exercitation +Duis aute +fugiat nulla +culpa qui diff --git a/test/e2e_test.sh b/test/e2e_test.sh index 18e9628..320521b 100755 --- a/test/e2e_test.sh +++ b/test/e2e_test.sh @@ -6,15 +6,15 @@ orig_dir="$(pwd)" cd "$(git rev-parse --show-toplevel)" # basic functionality -diff -w <(cargo run -- 0:1 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_0:1.txt") +diff -w <(cargo run -- 0:1 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_0x1.txt") diff -w <(cargo run -- 0 3 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_0_3.txt") -diff -w <(cargo run -- :1 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_:1.txt") +diff -w <(cargo run -- :1 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_x1.txt") diff -w <(cargo run -- 9 3 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_9_3.txt") diff -w <(cargo run -- 9 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_9.txt") diff -w <(cargo run -- 12 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_12.txt") -diff -w <(cargo run -- 4:2 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_4:2.txt") -diff -w <(cargo run -- -4:-2 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_-4:-2.txt") -diff -w <(cargo run -- 1:3 -o % -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_1:3of%.txt") +diff -w <(cargo run -- 4:2 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_4x2.txt") +diff -w <(cargo run -- -4:-2 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_-4x-2.txt") +diff -w <(cargo run -- 1:3 -o % -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_1x3of%.txt") diff -w <(cargo run -- 1 3 -o % -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_1_3of%.txt") diff -w <(cargo run -- 1 3 -o '' -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_1_3of.txt") diff -w <(cargo run -- 3:6 -c -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_0_3_c.txt") -- cgit v1.2.3