Skip to content

Commit

Permalink
Refactor: import paths for consts
Browse files Browse the repository at this point in the history
  • Loading branch information
bigherc18 committed Feb 26, 2023
1 parent 587a156 commit 2d93932
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2080,8 +2080,8 @@ mod bigdecimal_tests {
("12", 12),
("-13", -13),
("111", 111),
("-128", crate::i8::MIN),
("127", crate::i8::MAX),
("-128", i8::MIN),
("127", i8::MAX),
];
for (s, n) in vals {
let expected = BigDecimal::from_str(s).unwrap();
Expand Down Expand Up @@ -2142,8 +2142,8 @@ mod bigdecimal_tests {

#[test]
fn test_nan_float() {
assert!(BigDecimal::try_from(crate::f32::NAN).is_err());
assert!(BigDecimal::try_from(crate::f64::NAN).is_err());
assert!(BigDecimal::try_from(f32::NAN).is_err());
assert!(BigDecimal::try_from(f64::NAN).is_err());
}

#[test]
Expand Down

0 comments on commit 2d93932

Please sign in to comment.