mirror of
https://gitlab.uni-marburg.de/langbeid/powersort.git
synced 2025-01-21 19:50:35 +01:00
test and benchmark: add ASort
This commit is contained in:
parent
cb9ff240ea
commit
e25a14f718
@ -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);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,7 @@
|
||||
package de.uni_marburg.powersort.sort;
|
||||
|
||||
public class ASortTest extends AbstractSortTest {
|
||||
ASortTest() {
|
||||
sortAlg = SortEnum.ASORT;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user