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

Function from_u32_eq

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

Source from the content-addressed store, hash-verified

788
789 #[test]
790 fn from_u32_eq() {
791 assert!(Choice::from_u32_eq(0, 1).eq(Choice::FALSE).to_bool());
792 assert!(Choice::from_u32_eq(1, 1).eq(Choice::TRUE).to_bool());
793 }
794
795 #[test]
796 fn from_u32_le() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected