microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
library/src/tests/logical.rs
15lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | use super::test_expression; |
| 5 | use qsc::interpret::Value; |
| 6 | |
| 7 | // Tests for Std.Logical namespace |
| 8 | |
| 9 | #[test] |
| 10 | fn check_xor() { |
| 11 | test_expression("Std.Logical.Xor(false, false)", &Value::Bool(false)); |
| 12 | test_expression("Std.Logical.Xor(false, true)", &Value::Bool(true)); |
| 13 | test_expression("Std.Logical.Xor(true, false)", &Value::Bool(true)); |
| 14 | test_expression("Std.Logical.Xor(true, true)", &Value::Bool(false)); |
| 15 | } |