diff --git a/app/src/main/java/de/uni_marburg/powersort/sort/SortEnum.java b/app/src/main/java/de/uni_marburg/powersort/sort/SortEnum.java index 58b2397..f2c6bfe 100644 --- a/app/src/main/java/de/uni_marburg/powersort/sort/SortEnum.java +++ b/app/src/main/java/de/uni_marburg/powersort/sort/SortEnum.java @@ -7,7 +7,8 @@ public enum SortEnum { // BUBBLE_SORT, MERGE_SORT, TIM_SORT, - FIN_SORT; + FIN_SORT, + ASORT; public SimpleSort get() { return switch (this) { @@ -15,6 +16,7 @@ public enum SortEnum { case MERGE_SORT -> array -> MergeSort.legacyMergeSort(array, NaturalOrder.INSTANCE); case TIM_SORT -> array -> TimSort.sort(array, 0, array.length, NaturalOrder.INSTANCE, null, 0, 0); case FIN_SORT -> array -> FinnSort.sort(array, NaturalOrder.INSTANCE); + case ASORT -> array -> ASort.sort(array, NaturalOrder.INSTANCE); }; } } diff --git a/app/src/test/java/de/uni_marburg/powersort/sort/ASortTest.java b/app/src/test/java/de/uni_marburg/powersort/sort/ASortTest.java new file mode 100644 index 0000000..dc7acf5 --- /dev/null +++ b/app/src/test/java/de/uni_marburg/powersort/sort/ASortTest.java @@ -0,0 +1,7 @@ +package de.uni_marburg.powersort.sort; + +public class ASortTest extends AbstractSortTest { + ASortTest() { + sortAlg = SortEnum.ASORT; + } +}