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

Function from_u128_lt

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

Source from the content-addressed store, hash-verified

880
881 #[test]
882 fn from_u128_lt() {
883 assert!(Choice::from_u128_lt(0, 0).eq(Choice::FALSE).to_bool());
884 assert!(Choice::from_u128_lt(1, 0).eq(Choice::FALSE).to_bool());
885 assert!(Choice::from_u128_lt(1, 1).eq(Choice::FALSE).to_bool());
886 assert!(Choice::from_u128_lt(1, 2).eq(Choice::TRUE).to_bool());
887 }
888
889 #[test]
890 fn from_u128_comparison_boundaries() {

Callers 3

from_u128_leMethod · 0.85
ct_ltMethod · 0.85
choice_ltFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected