diff options
author | Arkadiusz Bielewicz <arkadiusz.bielewicz@allegro.pl> | 2021-10-13 13:45:55 +0200 |
---|---|---|
committer | Abin Simon <abinsimon10@gmail.com> | 2021-10-14 05:43:31 +0000 |
commit | b3a1dee4c682338bb6275d83b088b5583adf2821 (patch) | |
tree | ffebeff26556eba20b06d8f370ce9eeea9818887 /tests | |
parent | 19fb1c68a5692784224f94fd0b93f6e47276e164 (diff) |
#532 Improve date format validation to include all supported cases | fmt applied
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/integration.rs b/tests/integration.rs index b3f8073..574768a 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -606,7 +606,11 @@ fn test_date_custom_format_supports_nanos_with_length() { .arg("--ignore-config") .arg(dir.path()) .assert() - .stdout(predicate::str::is_match("testDateFormat\\.[0-9]{3}").unwrap().count(2)); + .stdout( + predicate::str::is_match("testDateFormat\\.[0-9]{3}") + .unwrap() + .count(2), + ); } #[test] @@ -622,5 +626,9 @@ fn test_date_custom_format_supports_padding() { .arg("--ignore-config") .arg(dir.path()) .assert() - .stdout(predicate::str::is_match("testDateFormat[\\s0-9]{2}").unwrap().count(2)); + .stdout( + predicate::str::is_match("testDateFormat[\\s0-9]{2}") + .unwrap() + .count(2), + ); } |