diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-18 10:27:39 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-18 10:27:39 +0100 |
| commit | e4ac6b36d3c633b3ec943ec279b82f79508b0f06 (patch) | |
| tree | 67aee49b6ee6c1b0ae0aec85961f327c36ec6a10 /examples/10-transient-0/output/rust/src/lib.rs | |
| parent | 25851fc06ab5b2271fb12ee35c5c181c1f9258aa (diff) | |
Support Bool values 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 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/examples/10-transient-0/output/rust/src/lib.rs b/examples/10-transient-0/output/rust/src/lib.rs index 80fa64f..75a7b47 100644 --- a/examples/10-transient-0/output/rust/src/lib.rs +++ b/examples/10-transient-0/output/rust/src/lib.rs @@ -4,7 +4,18 @@ pub mod transient_0; #[cfg(test)] mod test { use std::io::Cursor; - use super::data::{InnerStruct, OuterStruct, StructWithInt32, StructWithInt64}; + use super::data::{InnerStruct, OuterStruct, StructWithBool, StructWithInt32, StructWithInt64}; + + #[test] + fn struct_with_bool() { + let value = StructWithBool { a: true, b: false }; + + assert_round_trip_encoding( + value, + super::data::transient_0::encode_struct_with_bool, + super::data::transient_0::decode_struct_with_bool, + ); + } #[test] fn struct_with_int_32() { |
