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

Function from_u128_le

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

Source from the content-addressed store, hash-verified

866
867 #[test]
868 fn from_u128_le() {
869 assert!(Choice::from_u128_le(0, 0).eq(Choice::TRUE).to_bool());
870 assert!(Choice::from_u128_le(1, 0).eq(Choice::FALSE).to_bool());
871 assert!(Choice::from_u128_le(1, 1).eq(Choice::TRUE).to_bool());
872 assert!(Choice::from_u128_le(1, 2).eq(Choice::TRUE).to_bool());
873 }
874
875 #[test]
876 fn from_u128_lsb() {

Callers 2

choice_leFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected