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

Function from_u32_lt

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

Source from the content-addressed store, hash-verified

810
811 #[test]
812 fn from_u32_lt() {
813 assert!(Choice::from_u32_lt(0, 0).eq(Choice::FALSE).to_bool());
814 assert!(Choice::from_u32_lt(1, 0).eq(Choice::FALSE).to_bool());
815 assert!(Choice::from_u32_lt(1, 1).eq(Choice::FALSE).to_bool());
816 assert!(Choice::from_u32_lt(1, 2).eq(Choice::TRUE).to_bool());
817 }
818
819 #[test]
820 fn from_u32_nz() {

Callers 2

from_u8_ltMethod · 0.85
from_u16_ltMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected