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

Function xor

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

Source from the content-addressed store, hash-verified

694
695 #[test]
696 fn xor() {
697 assert_eq!((Choice::FALSE ^ Choice::FALSE).to_u8(), 0);
698 assert_eq!((Choice::TRUE ^ Choice::FALSE).to_u8(), 1);
699 assert_eq!((Choice::FALSE ^ Choice::TRUE).to_u8(), 1);
700 assert_eq!((Choice::TRUE ^ Choice::TRUE).to_u8(), 0);
701 }
702
703 #[test]
704 fn not() {

Callers 1

neMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected