Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxbotix committed Apr 7, 2024
1 parent 7b3e527 commit d67fbf3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/serialize_hierarchy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ mod tests {
field: bool,
}

#[derive(Deserialize, Serialize, SerializeHierarchy)]
struct TupleStruct(bool, f32, Inner, Outer);

#[test]
fn primitive_fields_are_empty() {
assert_eq!(bool::get_fields(), Default::default());
Expand Down

0 comments on commit d67fbf3

Please sign in to comment.