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

@@ -28,6 +28,14 @@ using System.Collections.Generic;
namespace TestStringAlgorithms{
[TestClass]
public class TestStringAlgorithms{
[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.StringAlgorithms.GetPermutations(permString);
CollectionAssert.AreEqual(correctAnswer, answer, "GetPermutations failed");
}
[TestMethod]
public void TestFindNumOccurrence(){
//Test 1