Skip to content

Commit

Permalink
add zst derive test
Browse files Browse the repository at this point in the history
  • Loading branch information
quackitsquinn committed May 16, 2024
1 parent 5e7b64b commit 739a1d1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,15 @@ mod tests {
let test2 = TupleTest::recv(&mut p).unwrap();
assert_eq!(test, test2);
}
#[derive(lazuli_derive::Sendable, Debug, PartialEq)]
struct TestZST();

#[test]
fn test_zst() {
let test = TestZST();
let data = test.send();
let mut p = Cursor::new(data);
let test2 = TestZST::recv(&mut p).unwrap();
assert_eq!(test, test2);
}
}

0 comments on commit 739a1d1

Please sign in to comment.