public void TestBWT_PositiveCase_CompareNormalAndQuantumCalc() { var bwt = new BWT(3, 4, true); var normalNumberOfSteps = bwt.NormalModeling(1, 16); var quantumNumberOfSteps = bwt.QuantumModeling(1, 16); Assert.IsTrue(normalNumberOfSteps > quantumNumberOfSteps); }
public void TestBWT_PositiveCase_AverageNumberOfStepQuantumModeling() { var bwt = new BWT(3, 4, true); var results = new List <int>(); for (int i = 0; i < 10000; i++) { var quantumNumberOfSteps = bwt.QuantumModeling(1, 16); results.Add(quantumNumberOfSteps); } var avg = results.Average(); Assert.AreEqual(avg, 11, 1); }