27 строки
623 B
Plaintext
27 строки
623 B
Plaintext
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
namespace Microsoft.Quantum.Tests {
|
|
|
|
open Microsoft.Quantum.Canon;
|
|
open Microsoft.Quantum.Diagnostics;
|
|
|
|
@Test("QuantumSimulator")
|
|
function PairIsCorrect() : Unit {
|
|
|
|
let pair = (12, PauliZ);
|
|
|
|
if (Fst(pair) != 12) {
|
|
let actual = Fst(pair);
|
|
fail $"Expected 12, actual {actual}.";
|
|
}
|
|
|
|
if (Snd(pair) != PauliZ) {
|
|
let actual = Snd(pair);
|
|
fail $"Expected PauliZ, actual {actual}.";
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|