diff options
author | Ryan Geary <rtgnj42@gmail.com> | 2020-04-04 22:29:51 -0400 |
---|---|---|
committer | Ryan Geary <rtgnj42@gmail.com> | 2020-04-06 17:13:57 -0400 |
commit | 7243843d2f13d9fc84ffc0c757c7a73bbf6734ea (patch) | |
tree | 4c0f95cd4a5fda0c665ca38e4683c7ef730ad5d7 /test/e2e_test.sh | |
parent | d40c9d5234e4388b6321f9bea2f4b43e748b59fd (diff) |
[FEATURE] specify output field delimiter (#8)
Add output_field_separator option
Add output_field_separator tests
Change structopt req to 0.3
Separate negative choices into a function
Prevent tail printing output_field_separator
Change OFS to Option<String> with a default value of " "
Reorder arguments to write_bytes to parallel print_choice
Print output_separator in main loop if applicable
Add `cargo test` to Makefile
Add write_separator function
Diffstat (limited to 'test/e2e_test.sh')
-rwxr-xr-x | test/e2e_test.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/e2e_test.sh b/test/e2e_test.sh index a415961..69ddd54 100755 --- a/test/e2e_test.sh +++ b/test/e2e_test.sh @@ -14,6 +14,9 @@ diff -w <(cargo run -- 9 -i ${test_dir}/lorem.txt 2>/dev/null) <(cat "${test_dir 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 -- 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") # add tests for different delimiters # add tests using piping |