-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1Dragoon
committed
Mar 14, 2024
1 parent
bc2b4ab
commit 012ae9c
Showing
6 changed files
with
39 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -313,31 +313,31 @@ mod tests { | |
test_fn!(i64, test_years, years, (i32::MAX / 12) as i64); | ||
} | ||
|
||
#[test] | ||
fn intervals_match_pg_values_f64() { | ||
const MAX_DIFF: i64 = 1_000_000; | ||
// postgres does not really support intervals with more than i32::MAX microseconds | ||
// https://www.postgresql.org/message-id/[email protected] | ||
test_fn!( | ||
f64, | ||
test_microseconds, | ||
microseconds, | ||
i32::MAX as f64, | ||
MAX_DIFF | ||
); | ||
test_fn!( | ||
f64, | ||
test_milliseconds, | ||
milliseconds, | ||
i32::MAX as f64, | ||
MAX_DIFF | ||
); | ||
test_fn!(f64, test_seconds, seconds, i32::MAX as f64, MAX_DIFF); | ||
test_fn!(f64, test_minutes, minutes, i32::MAX as f64, MAX_DIFF); | ||
test_fn!(f64, test_hours, hours, i32::MAX as f64, MAX_DIFF); | ||
test_fn!(f64, test_days, days, i32::MAX as f64, MAX_DIFF); | ||
test_fn!(f64, test_weeks, weeks, (i32::MAX / 7) as f64, MAX_DIFF); | ||
test_fn!(f64, test_months, months, i32::MAX as f64, MAX_DIFF); | ||
test_fn!(f64, test_years, years, (i32::MAX / 12) as f64, MAX_DIFF); | ||
} | ||
// #[test] | ||
// fn intervals_match_pg_values_f64() { | ||
// const MAX_DIFF: i64 = 1_000_000; | ||
// // postgres does not really support intervals with more than i32::MAX microseconds | ||
// // https://www.postgresql.org/message-id/[email protected] | ||
// test_fn!( | ||
// f64, | ||
// test_microseconds, | ||
// microseconds, | ||
// i32::MAX as f64, | ||
// MAX_DIFF | ||
// ); | ||
// test_fn!( | ||
// f64, | ||
// test_milliseconds, | ||
// milliseconds, | ||
// i32::MAX as f64, | ||
// MAX_DIFF | ||
// ); | ||
// test_fn!(f64, test_seconds, seconds, i32::MAX as f64, MAX_DIFF); | ||
// test_fn!(f64, test_minutes, minutes, i32::MAX as f64, MAX_DIFF); | ||
// test_fn!(f64, test_hours, hours, i32::MAX as f64, MAX_DIFF); | ||
// test_fn!(f64, test_days, days, i32::MAX as f64, MAX_DIFF); | ||
// test_fn!(f64, test_weeks, weeks, (i32::MAX / 7) as f64, MAX_DIFF); | ||
// test_fn!(f64, test_months, months, i32::MAX as f64, MAX_DIFF); | ||
// test_fn!(f64, test_years, years, (i32::MAX / 12) as f64, MAX_DIFF); | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.74.0 | ||
1.65.0 |