Files
Notes/notes-service/vendor/schemars/tests/integration/either.rs
T
2026-08-01 16:11:49 +03:00

15 lines
369 B
Rust

use crate::prelude::*;
use either1::Either;
#[test]
fn either() {
test!(Either<i32, Either<bool, ()>>)
.assert_snapshot()
.assert_allows_ser_roundtrip([
Either::Left(123),
Either::Right(Either::Left(true)),
Either::Right(Either::Right(())),
])
.assert_matches_de_roundtrip(arbitrary_values());
}