microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
sccarda/BlochLearning

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

library/src/tests/logical.rs

15lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4use super::test_expression;
5use qsc::interpret::Value;
6
7// Tests for Std.Logical namespace
8
9#[test]
10fn 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}