| 1 | use crate::prelude::*; |
| 2 | use either1::Either; |
| 3 | |
| 4 | #[test] |
| 5 | fn either() { |
| 6 | test!(Either<i32, Either<bool, ()>>) |
| 7 | .assert_snapshot() |
| 8 | .assert_allows_ser_roundtrip([ |
| 9 | Either::Left(123), |
| 10 | Either::Right(Either::Left(true)), |
| 11 | Either::Right(Either::Right(())), |
| 12 | ]) |
| 13 | .assert_matches_de_roundtrip(arbitrary_values()); |
| 14 | } |