microsoft/qdk
Publicmirrored from https://github.com/microsoft/qdkAvailable
katas/content/random_numbers/random_two_bits/Verification.qs
12lines · modecode
| 1 | namespace Kata.Verification { |
| 2 | @EntryPoint() |
| 3 | operation CheckSolution() : Bool { |
| 4 | let randomnessVerifier = () => CheckUniformDistribution(Kata.RandomTwoBits, 0, 3, 1000); |
| 5 | let isCorrect = IsSufficientlyRandom(randomnessVerifier); |
| 6 | if isCorrect { |
| 7 | Message("All tests passed."); |
| 8 | } |
| 9 | isCorrect |
| 10 | } |
| 11 | |
| 12 | } |
| 13 | |