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

Function from_u32_le

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

Source from the content-addressed store, hash-verified

794
795 #[test]
796 fn from_u32_le() {
797 assert!(Choice::from_u32_le(0, 0).eq(Choice::TRUE).to_bool());
798 assert!(Choice::from_u32_le(1, 0).eq(Choice::FALSE).to_bool());
799 assert!(Choice::from_u32_le(1, 1).eq(Choice::TRUE).to_bool());
800 assert!(Choice::from_u32_le(1, 2).eq(Choice::TRUE).to_bool());
801 }
802
803 #[test]
804 fn from_u32_lsb() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected