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

Function from_u16_lsb

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

Source from the content-addressed store, hash-verified

765
766 #[test]
767 fn from_u16_lsb() {
768 assert!(Choice::from_u16_lsb(0).eq(Choice::FALSE).to_bool());
769 assert!(Choice::from_u16_lsb(1).eq(Choice::TRUE).to_bool());
770 assert!(Choice::from_u16_lsb(2).eq(Choice::FALSE).to_bool());
771 assert!(Choice::from_u16_lsb(3).eq(Choice::TRUE).to_bool());
772 }
773
774 #[test]
775 fn from_u16_lt() {

Callers 2

from_u16_leMethod · 0.85
from_u16_ltMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected