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

Function from_u64_le

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

Source from the content-addressed store, hash-verified

831
832 #[test]
833 fn from_u64_le() {
834 assert!(Choice::from_u64_le(0, 0).eq(Choice::TRUE).to_bool());
835 assert!(Choice::from_u64_le(1, 0).eq(Choice::FALSE).to_bool());
836 assert!(Choice::from_u64_le(1, 1).eq(Choice::TRUE).to_bool());
837 assert!(Choice::from_u64_le(1, 2).eq(Choice::TRUE).to_bool());
838 }
839
840 #[test]
841 fn from_u64_lsb() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected