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

Function from_u8_lsb

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

Source from the content-addressed store, hash-verified

728
729 #[test]
730 fn from_u8_lsb() {
731 assert!(Choice::from_u8_lsb(0).eq(Choice::FALSE).to_bool());
732 assert!(Choice::from_u8_lsb(1).eq(Choice::TRUE).to_bool());
733 assert!(Choice::from_u8_lsb(2).eq(Choice::FALSE).to_bool());
734 assert!(Choice::from_u8_lsb(3).eq(Choice::TRUE).to_bool());
735 }
736
737 #[test]
738 fn from_u8_lt() {

Callers 5

from_u8_leMethod · 0.85
from_u8_ltMethod · 0.85
from_u128_lt_halvesMethod · 0.85
fromMethod · 0.85
conditionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected