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

Function xor

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

Source from the content-addressed store, hash-verified

670
671 #[test]
672 fn xor() {
673 assert_eq!((Choice::FALSE ^ Choice::FALSE).to_u8(), 0);
674 assert_eq!((Choice::TRUE ^ Choice::FALSE).to_u8(), 1);
675 assert_eq!((Choice::FALSE ^ Choice::TRUE).to_u8(), 1);
676 assert_eq!((Choice::TRUE ^ Choice::TRUE).to_u8(), 0);
677 }
678
679 #[test]
680 fn not() {

Callers 1

neMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected