diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-17 10:44:40 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-17 10:44:40 +0100 |
| commit | db10b42d361f0ff73a88d34dad1165a736d12024 (patch) | |
| tree | 8ca241ce6f48fddab1ebb5003776805a9f475366 /examples/10-transient-0/output/rust/src/lib.rs | |
| parent | 10647973b0eca00371f32bd7a4d4db700fe1fc32 (diff) | |
Support Int64 in rust-transient-0
Diffstat (limited to 'examples/10-transient-0/output/rust/src/lib.rs')
| -rw-r--r-- | examples/10-transient-0/output/rust/src/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/10-transient-0/output/rust/src/lib.rs b/examples/10-transient-0/output/rust/src/lib.rs index 56be8ca..9b53c0e 100644 --- a/examples/10-transient-0/output/rust/src/lib.rs +++ b/examples/10-transient-0/output/rust/src/lib.rs @@ -18,6 +18,17 @@ mod test { ); } + #[test] + fn struct_with_int_64() { + let value = StructWithInt64 { a: 10, b: 25 }; + + assert_round_trip_encoding( + value, + super::data::transient_0::encode_struct_with_int_64, + super::data::transient_0::decode_struct_with_int_64, + ); + } + fn assert_round_trip_encoding<T: std::cmp::PartialEq + std::fmt::Debug>( value: T, encode: impl Fn(&T, &mut Cursor<Vec<u8>>), |
