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

Function from_u16_le

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

Source from the content-addressed store, hash-verified

757
758 #[test]
759 fn from_u16_le() {
760 assert!(Choice::from_u16_le(0, 0).eq(Choice::TRUE).to_bool());
761 assert!(Choice::from_u16_le(1, 0).eq(Choice::FALSE).to_bool());
762 assert!(Choice::from_u16_le(1, 1).eq(Choice::TRUE).to_bool());
763 assert!(Choice::from_u16_le(1, 2).eq(Choice::TRUE).to_bool());
764 }
765
766 #[test]
767 fn from_u16_lsb() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected