mirror of
https://github.com/theryangeary/choose
synced 2024-11-26 21:00:17 +00:00
Ignore all whitespace in testing
This commit is contained in:
parent
e7197092b5
commit
1d4fd6f48e
1 changed files with 8 additions and 5 deletions
13
test/test.sh
13
test/test.sh
|
@ -6,8 +6,11 @@ orig_dir="$(pwd)"
|
|||
cd "$(git rev-parse --show-toplevel)"
|
||||
cargo build
|
||||
|
||||
diff -Z <(cargo run -- 0:2 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_0:2.txt")
|
||||
diff -Z <(cargo run -- 0 3 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_0_3.txt")
|
||||
diff -Z <(cargo run -- :2 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_:2.txt")
|
||||
diff -Z <(cargo run -- 9 3 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_9_3.txt")
|
||||
diff -Z <(cargo run -- 9 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_9.txt")
|
||||
diff -w <(cargo run -- 0:2 -i ${test_dir}/lorem.txt) <(cat "${test_dir}/choose_0:2.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 -- 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")
|
||||
# add test for reverse range
|
||||
# add tests for different delimiters
|
||||
# add tests using piping
|
||||
|
|
Loading…
Reference in a new issue