diff options
| author | Andrew Aylett <andrew@aylett.co.uk> | 2025-01-07 20:04:48 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-07 20:04:48 +0000 |
| commit | 80c41841a9a8e9f1b5dee31956e2e9efa97c74e5 (patch) | |
| tree | 81456182bd7a72b766309ca3abd2b155f683d58a /crates/atuin-common/src | |
| parent | chore(deps): bump debian (#2510) (diff) | |
| download | atuin-80c41841a9a8e9f1b5dee31956e2e9efa97c74e5.zip | |
chore: Remove unneeded dependencies (#2523)
These dependencies are unused in actual code, and the test I've removed
is a remnant from a move to use an external library -- it was useful to
show that the mechanical transformation was correct, but it's only
testing that library nowadays.
Diffstat (limited to 'crates/atuin-common/src')
| -rw-r--r-- | crates/atuin-common/src/utils.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/crates/atuin-common/src/utils.rs b/crates/atuin-common/src/utils.rs index 869866b0..7f156d77 100644 --- a/crates/atuin-common/src/utils.rs +++ b/crates/atuin-common/src/utils.rs @@ -192,7 +192,6 @@ impl<T: AsRef<str>> Escapable for T {} #[cfg(test)] mod tests { use pretty_assertions::assert_ne; - use time::Month; use super::*; use std::env; @@ -243,25 +242,6 @@ mod tests { } #[test] - fn days_from_month() { - assert_eq!(time::util::days_in_year_month(2023, Month::January), 31); - assert_eq!(time::util::days_in_year_month(2023, Month::February), 28); - assert_eq!(time::util::days_in_year_month(2023, Month::March), 31); - assert_eq!(time::util::days_in_year_month(2023, Month::April), 30); - assert_eq!(time::util::days_in_year_month(2023, Month::May), 31); - assert_eq!(time::util::days_in_year_month(2023, Month::June), 30); - assert_eq!(time::util::days_in_year_month(2023, Month::July), 31); - assert_eq!(time::util::days_in_year_month(2023, Month::August), 31); - assert_eq!(time::util::days_in_year_month(2023, Month::September), 30); - assert_eq!(time::util::days_in_year_month(2023, Month::October), 31); - assert_eq!(time::util::days_in_year_month(2023, Month::November), 30); - assert_eq!(time::util::days_in_year_month(2023, Month::December), 31); - - // leap years - assert_eq!(time::util::days_in_year_month(2024, Month::February), 29); - } - - #[test] fn uuid_is_unique() { let how_many: usize = 1000000; |
