diff options
| author | Jack O'Connor <[email protected]> | 2019-12-11 22:41:59 -0500 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2019-12-11 22:41:59 -0500 |
| commit | c8d21fab957a0a5c9c42b9a8e657c4dec7f87f58 (patch) | |
| tree | f95e31787984d1ae65ad1ea27c908bc36fbf9662 /test_vectors/src | |
| parent | a3be434d28c18b356be1d1c2a7f6bd8052fd0b14 (diff) | |
account for Windows newlines when checking for test vector changes
Diffstat (limited to 'test_vectors/src')
| -rw-r--r-- | test_vectors/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test_vectors/src/lib.rs b/test_vectors/src/lib.rs index 18a4497..be29c5f 100644 --- a/test_vectors/src/lib.rs +++ b/test_vectors/src/lib.rs @@ -307,7 +307,9 @@ mod tests { #[test] fn test_checked_in_vectors_up_to_date() { - let json = read_test_vectors_file(); + // Replace Windows newlines, in case Git is configured to alter + // newlines when files are checked out. + let json = read_test_vectors_file().replace("\r\n", "\n"); if generate_json() != json { panic!("Checked-in test_vectors.json is not up to date. Regenerate with `cargo run --bin generate > ./test_vectors.json`."); } |
