Beispiel #1
0
 public static void Run()
 {
     int[] a = { 6, 16, 239, 75, 1214, 34, 49, 840, 96, 4, 104, 432, 2, 29, 62, 5, 14 };
     Utils.Print(a);
     HeapSort.Sort(a);
     Utils.Print(a);
 }
Beispiel #2
0
 public void HeapSort_InputStringArray_AscendingOrder()
 {
     string[] s = { "S", "O", "R", "T", "E", "X", "A", "M", "P", "L", "E" };
     HeapSort.sort(s);
     UnityEngine.Debug.Log(s);
     Assert.True(BaseSort.isSorted(s));
 }