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

Function ordering_ct_select

ctutils/src/traits/ct_select.rs:203–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201
202 #[test]
203 fn ordering_ct_select() {
204 let a = cmp::Ordering::Less;
205 let b = cmp::Ordering::Greater;
206 assert_eq!(a.ct_select(&b, Choice::FALSE), a);
207 assert_eq!(a.ct_select(&b, Choice::TRUE), b);
208 }
209}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected