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

Function or

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

Source from the content-addressed store, hash-verified

686
687 #[test]
688 fn or() {
689 assert_eq!((Choice::FALSE | Choice::FALSE).to_u8(), 0);
690 assert_eq!((Choice::TRUE | Choice::FALSE).to_u8(), 1);
691 assert_eq!((Choice::FALSE | Choice::TRUE).to_u8(), 1);
692 assert_eq!((Choice::TRUE | Choice::TRUE).to_u8(), 1);
693 }
694
695 #[test]
696 fn xor() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected