diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/choose_2_x.txt | 6 | ||||
-rwxr-xr-x | test/e2e_test.sh | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/choose_2_x.txt b/test/choose_2_x.txt new file mode 100644 index 0000000..4822e4f --- /dev/null +++ b/test/choose_2_x.txt @@ -0,0 +1,6 @@ +dolor +labore +ullamco +irure +pariatur. +officia diff --git a/test/e2e_test.sh b/test/e2e_test.sh index 5fb22e9..218a5d4 100755 --- a/test/e2e_test.sh +++ b/test/e2e_test.sh @@ -18,6 +18,7 @@ diff -w <(cargo run -- 1:3 -o % -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${t 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") +diff -w <(cargo run -- 2 -x -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir}/choose_2_x.txt") # add tests for different delimiters # add tests using piping |