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

Function and

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

Source from the content-addressed store, hash-verified

678
679 #[test]
680 fn and() {
681 assert_eq!((Choice::FALSE & Choice::FALSE).to_u8(), 0);
682 assert_eq!((Choice::TRUE & Choice::FALSE).to_u8(), 0);
683 assert_eq!((Choice::FALSE & Choice::TRUE).to_u8(), 0);
684 assert_eq!((Choice::TRUE & Choice::TRUE).to_u8(), 1);
685 }
686
687 #[test]
688 fn or() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected