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

Function from_u64_lt

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

Source from the content-addressed store, hash-verified

845
846 #[test]
847 fn from_u64_lt() {
848 assert!(Choice::from_u64_lt(0, 0).eq(Choice::FALSE).to_bool());
849 assert!(Choice::from_u64_lt(1, 0).eq(Choice::FALSE).to_bool());
850 assert!(Choice::from_u64_lt(1, 1).eq(Choice::FALSE).to_bool());
851 assert!(Choice::from_u64_lt(1, 2).eq(Choice::TRUE).to_bool());
852 }
853
854 #[test]
855 fn from_u64_nz() {

Callers 2

from_u128_lt_halvesMethod · 0.85
ct_ltMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected