MCPcopy Create free account
hub / github.com/RustCrypto/utils / from_u8_le

Function from_u8_le

ctutils/src/choice.rs:722–727  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

720
721 #[test]
722 fn from_u8_le() {
723 assert!(Choice::from_u8_le(0, 0).eq(Choice::TRUE).to_bool());
724 assert!(Choice::from_u8_le(1, 0).eq(Choice::FALSE).to_bool());
725 assert!(Choice::from_u8_le(1, 1).eq(Choice::TRUE).to_bool());
726 assert!(Choice::from_u8_le(1, 2).eq(Choice::TRUE).to_bool());
727 }
728
729 #[test]
730 fn from_u8_lsb() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected