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_AverageNumberOfStepNormalModeling() { var bwt = new BWT(3, 4, true); var results = new List <int>(); for (int i = 0; i < 10000; i++) { var normalNumberOfSteps = bwt.NormalModeling(1, 16); results.Add(normalNumberOfSteps); } var avg = results.Average(); Assert.AreEqual(avg, 82, 1); }