Moved getPermutations to the correct file

This commit is contained in:
2021-07-05 01:36:06 -04:00
parent dd676bcdc8
commit 41cb497943
4 changed files with 52 additions and 52 deletions

View File

@@ -79,13 +79,5 @@ namespace TestCSClasses{
BigInteger bigAnswer = mee.ArrayAlgorithms.GetProd(bigNumbers);
Assert.AreEqual(bigCorrectAnswer, bigAnswer, "GetProd BigInteger failed");
}
[TestMethod]
public void TestGetPermutations(){
//Test 1
string permString = "012";
List<string> correctAnswer = new List<string>(){"012", "021", "102", "120", "201", "210"};
List<string> answer = mee.ArrayAlgorithms.GetPermutations(permString);
CollectionAssert.AreEqual(correctAnswer, answer, "GetPermutations failed");
}
}
}