Пример #1
0
 public void MSDDiffLengthTest()
 {
     string[] array = { "zoe", "alex", "luis", "ben", "johnny", "benny", "abbey", "shawn", "alice", "shirley", "john", "bobby", "cate" };
     RadixSort.MSD(array);
     for (int i = 0; i < array.Length; i++)
     {
         Assert.Equal(expectName[i], array[i]);
     }
 }
Пример #2
0
 public void MSDSameLengthTest()
 {
     string[] array = { "opq", "elk", "bcb", "bde", "exk", "aba", "bgp", "aac", "aaa", "cpd" };
     RadixSort.MSD(array);
     for (int i = 0; i < array.Length; i++)
     {
         Assert.Equal(expectSeq[i], array[i]);
     }
 }