Release: v0.10.0
-
Improve the ability to unparse and update the test files. Mainly add
update_record_with_output
andupdate_test_file
to the library.More details:
- Add
impl Display
forRecord
(refactorunparse
). - Add
Record::Whitespace
so the whitespace in the original files can be reconstructed duringunparse
. - Add tests for unparsing and updating records.
- Refactor and fix the behavior about newlines and
halt
for CLI options--override
and--format
.
- Add
-
Fix:
hash-threshold
should be compared with the number of values instead of the number of rows. -
Breaking change: The type of
Validator
is changed fromfn(&Vec<String>, &Vec<String>) -> bool
tofn(&[Vec<String>], &[String]) -> bool
. Also added adefault_validator
.
Thanks to the contributions of @alamb and @xudong963 .