Skip to content

Commit

Permalink
Add test of common PartialEq cases
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Apr 7, 2019
1 parent e23fb80 commit 983cb32
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_partialeq.rs
@@ -0,0 +1,13 @@
use serde_bytes::{Bytes, ByteBuf};

fn _bytes_eq_slice(bytes: &Bytes, slice: &[u8]) -> bool {
bytes == slice
}

fn _bytebuf_eq_vec(bytebuf: ByteBuf, vec: Vec<u8>) -> bool {
bytebuf == vec
}

fn _bytes_eq_bytestring(bytes: &Bytes) -> bool {
bytes == b"..."
}

0 comments on commit 983cb32

Please sign in to comment.