| 1 | use crate::prelude::*; |
| 2 | |
| 3 | #[test] |
| 4 | fn decimal_types() { |
| 5 | #[cfg(feature = "rust_decimal1")] |
| 6 | test!(rust_decimal1::Decimal) |
| 7 | .assert_snapshot() |
| 8 | .assert_allows_ser_roundtrip_default() |
| 9 | .assert_matches_de_roundtrip(arbitrary_values()); |
| 10 | |
| 11 | #[cfg(feature = "bigdecimal04")] |
| 12 | test!(bigdecimal04::BigDecimal) |
| 13 | .assert_snapshot() |
| 14 | .assert_allows_ser_roundtrip_default() |
| 15 | .assert_matches_de_roundtrip(arbitrary_values()); |
| 16 | |
| 17 | #[cfg(all(feature = "rust_decimal1", feature = "bigdecimal04"))] |
| 18 | test!(bigdecimal04::BigDecimal).assert_identical::<rust_decimal1::Decimal>(); |
| 19 | } |