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

Function from_u16_lt

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

Source from the content-addressed store, hash-verified

773
774 #[test]
775 fn from_u16_lt() {
776 assert!(Choice::from_u16_lt(0, 0).eq(Choice::FALSE).to_bool());
777 assert!(Choice::from_u16_lt(1, 0).eq(Choice::FALSE).to_bool());
778 assert!(Choice::from_u16_lt(1, 1).eq(Choice::FALSE).to_bool());
779 assert!(Choice::from_u16_lt(1, 2).eq(Choice::TRUE).to_bool());
780 }
781
782 #[test]
783 fn from_u16_nz() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected