diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/choose_1x-1.txt | 19 | ||||
-rw-r--r-- | test/choose_1x-2.txt | 19 | ||||
-rw-r--r-- | test/choose_1x-3.txt | 19 | ||||
-rwxr-xr-x | test/e2e_test.sh | 3 |
4 files changed, 60 insertions, 0 deletions
diff --git a/test/choose_1x-1.txt b/test/choose_1x-1.txt new file mode 100644 index 0000000..33a230e --- /dev/null +++ b/test/choose_1x-1.txt @@ -0,0 +1,19 @@ + +c +e f + +h i +k + + + +o +q r + +t u +w + + + + + diff --git a/test/choose_1x-2.txt b/test/choose_1x-2.txt new file mode 100644 index 0000000..0544919 --- /dev/null +++ b/test/choose_1x-2.txt @@ -0,0 +1,19 @@ + + +e + +h + + + + + +q + +t + + + + + + diff --git a/test/choose_1x-3.txt b/test/choose_1x-3.txt new file mode 100644 index 0000000..a60f303 --- /dev/null +++ b/test/choose_1x-3.txt @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/test/e2e_test.sh b/test/e2e_test.sh index 320521b..6fe58ff 100755 --- a/test/e2e_test.sh +++ b/test/e2e_test.sh @@ -21,6 +21,9 @@ diff -w <(cargo run -- 3:6 -c -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${tes diff -w <(cargo run -- 2 -x -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_2_x.txt") diff -w <(cargo run -- -1 -i ${test_dir}/alphabet.txt 2>/dev/null) <(cat "${test_dir}/choose_-1.txt") diff -w <(cargo run -- -2 -i ${test_dir}/alphabet.txt 2>/dev/null) <(cat "${test_dir}/choose_-2.txt") +diff -w <(cargo run -- 1:-1 -i ${test_dir}/alphabet.txt 2>/dev/null) <(cat "${test_dir}/choose_1x-1.txt") +diff -w <(cargo run -- 1:-2 -i ${test_dir}/alphabet.txt 2>/dev/null) <(cat "${test_dir}/choose_1x-2.txt") +diff -w <(cargo run -- 1:-3 -i ${test_dir}/alphabet.txt 2>/dev/null) <(cat "${test_dir}/choose_1x-3.txt") # add tests for different delimiters # add tests using piping |