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

Function ct_lt

ctutils/src/traits/ct_lt.rs:115–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113
114 #[test]
115 fn ct_lt() {
116 let a = 42u64;
117 let b = 43u64;
118 assert!(!a.ct_lt(&a).to_bool());
119 assert!(a.ct_lt(&b).to_bool());
120 assert!(!b.ct_lt(&a).to_bool());
121 }
122
123 /// Test `CtLt`
124 macro_rules! ct_lt_tests {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected