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

Function from_u32_lsb

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

Source from the content-addressed store, hash-verified

802
803 #[test]
804 fn from_u32_lsb() {
805 assert!(Choice::from_u32_lsb(0).eq(Choice::FALSE).to_bool());
806 assert!(Choice::from_u32_lsb(1).eq(Choice::TRUE).to_bool());
807 assert!(Choice::from_u32_lsb(2).eq(Choice::FALSE).to_bool());
808 assert!(Choice::from_u32_lsb(3).eq(Choice::TRUE).to_bool());
809 }
810
811 #[test]
812 fn from_u32_lt() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected