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

Function from_u128_eq

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

Source from the content-addressed store, hash-verified

860
861 #[test]
862 fn from_u128_eq() {
863 assert!(Choice::from_u128_eq(0, 1).eq(Choice::FALSE).to_bool());
864 assert!(Choice::from_u128_eq(1, 1).eq(Choice::TRUE).to_bool());
865 }
866
867 #[test]
868 fn from_u128_le() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected