summaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2022-04-23Fix field separator issue with no EOFRyan Geary
2022-04-23Fix positive start, negative end, length 1 choice is emptyRyan Geary
2022-04-18Rename test files for Windows compatibilityPaul Moore
2021-07-23Improve error handling38-unwrap-on-empty-choiceRyan Geary
Create choose::Error and choose::Result Improve error propogation Improve error printing Add tests for negative indices Add get_negative_start_end tests Fixup negative choice indexing Remove most uses of unwrap Fixes #38
2020-06-08Add regression tests for #16Ryan Geary
2020-06-02Add character-wise `choose`ingRyan Geary
Alphabetize structopt options Add character-wise tests Add character-wise switch Add print-after-end test Add empty default separator for char-wise mode Add char-wise forward and negative printing Add pure reverse printing Change to char_wise to user `char` instead of `u8` Adds support for unicode (read: emojis) Adds a newline char to end of each char-wise test because that's how it is Add writing traits for better code structure Merge repetitive codepaths with generics Unify print_choice_* funtion names Reorder functions in choice module Rename variable to avoid name confusion Make default case for loop more readable Abstract default case print loop Add e2e test Move vec create to print_choice_negative
2020-04-06[FEATURE] specify output field delimiter (#8)Ryan Geary
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
2020-04-01Add negative choice and parsing testsRyan Geary
Allow negative ranges as long as they aren't reversed too Allow reversed negative ranges iff both indices are negative
2020-03-17Handle failure to open input fileRyan Geary
2020-03-17Reassign exit codes and clean up e2e_testRyan Geary
0 - Success 1 - Argument parsing error 2 - Regex compilation error
2020-03-10Improve performance and add profiling toolingRyan Geary
Add tags, todo, *.bench, *.svg and bench_output to .gitignore Add test/bench.sh script. bench.sh runs the `bench` command on each test/long*txt file with range 3:5 and saves the output to a file for comparing performance across file sizes. Inline printing in get_choice_slice Change BufWriter<..stdout..> to BufWriter<T> Add MockStdout for testing printing Add more reverse range tests Simplify word finding with a more uniform bounds check. Add Makefile for generating flamegraphs Redefine Choice struct as a start and end integer Improve algorithm for finding words to print Settle exclusivity at Config construction time Add tests for nonexistant field_seps Add regression test for preceding separator Use handle.write instead of write! macro for tremendous speed up
2019-10-13[BREAKING] Default to inclusive ranges, -x for exclusiveRyan Geary
2019-10-13Add reverse rangesRyan Geary
2019-09-17Add cargo test to e2etestRyan Geary
2019-09-17Test return value on error with e2e testRyan Geary
2019-09-11Add choose 12 testRyan Geary
2019-09-10Rename test to e2e_testv0.1.0Ryan Geary
2019-09-10Ignore all whitespace in testingRyan Geary
2019-09-10Add basic test suiteRyan Geary