diff options
author | Ryan Geary <rtgnj42@gmail.com> | 2019-10-13 22:00:15 -0400 |
---|---|---|
committer | Ryan Geary <rtgnj42@gmail.com> | 2019-10-13 22:00:15 -0400 |
commit | f662219407e21abfb658b73a1e97ea0dc3908fe3 (patch) | |
tree | b3ede16c1334d0a2ce1ee90f5a7bd8f236860eeb /test | |
parent | 0be16bf1d99af669497f7125d9e3eb6b8fb09fad (diff) |
[BREAKING] Default to inclusive ranges, -x for exclusive
Diffstat (limited to 'test')
-rw-r--r-- | test/choose_0:1.txt (renamed from test/choose_0:2.txt) | 0 | ||||
-rw-r--r-- | test/choose_4:2.txt | 6 | ||||
-rw-r--r-- | test/choose_:1.txt (renamed from test/choose_:2.txt) | 0 | ||||
-rwxr-xr-x | test/e2e_test.sh | 6 |
4 files changed, 9 insertions, 3 deletions
diff --git a/test/choose_0:2.txt b/test/choose_0:1.txt index 38b492a..38b492a 100644 --- a/test/choose_0:2.txt +++ b/test/choose_0:1.txt diff --git a/test/choose_4:2.txt b/test/choose_4:2.txt new file mode 100644 index 0000000..e441054 --- /dev/null +++ b/test/choose_4:2.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_:2.txt b/test/choose_:1.txt index 38b492a..38b492a 100644 --- a/test/choose_:2.txt +++ b/test/choose_:1.txt diff --git a/test/e2e_test.sh b/test/e2e_test.sh index a76b8a2..95207f8 100755 --- a/test/e2e_test.sh +++ b/test/e2e_test.sh @@ -7,13 +7,13 @@ cd "$(git rev-parse --show-toplevel)" cargo build # basic functionality -diff -w <(cargo run -- 0:2 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_0:2.txt") +diff -w <(cargo run -- 0:1 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_0:1.txt") diff -w <(cargo run -- 0 3 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_0_3.txt") -diff -w <(cargo run -- :2 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_:2.txt") +diff -w <(cargo run -- :1 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_:1.txt") diff -w <(cargo run -- 9 3 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_9_3.txt") diff -w <(cargo run -- 9 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_9.txt") diff -w <(cargo run -- 12 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_12.txt") -diff -w <(cargo run -- 4:1 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_4:1.txt") +diff -w <(cargo run -- 4:2 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_4:2.txt") # add tests for different delimiters # add tests using piping |