Skip to content

Commit

Permalink
add bool to u8 test to transmute tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Creative0708 committed Feb 21, 2024
1 parent 25f08ea commit fff10a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/transmute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ mod tests {
transmute::transmute::<[i32; 5], [u8; 20]>([1, 2, 3, 4, 5]),
mem::transmute::<[i32; 5], [u8; 20]>([1, 2, 3, 4, 5])
);

assert_eq!(
transmute::transmute::<bool, u8>(true),
mem::transmute::<bool, u8>(true)
);
}
}
}

0 comments on commit fff10a2

Please sign in to comment.