| 1 | use crate::prelude::*; |
| 2 | |
| 3 | #[cfg(feature = "smol_str02")] |
| 4 | #[test] |
| 5 | fn smol_str02() { |
| 6 | test!(smol_str02::SmolStr) |
| 7 | .assert_identical::<String>() |
| 8 | .assert_allows_ser_roundtrip(["".into(), "test".into()]) |
| 9 | .assert_matches_de_roundtrip(arbitrary_values()); |
| 10 | } |
| 11 | |
| 12 | #[cfg(feature = "smol_str03")] |
| 13 | #[test] |
| 14 | fn smol_str03() { |
| 15 | test!(smol_str03::SmolStr) |
| 16 | .assert_identical::<String>() |
| 17 | .assert_allows_ser_roundtrip(["".into(), "test".into()]) |
| 18 | .assert_matches_de_roundtrip(arbitrary_values()); |
| 19 | } |