From 1ab2bdc2a0fdba51709b8548a3caca51cf440ab5 Mon Sep 17 00:00:00 2001 From: M-H9 Date: Wed, 15 Jan 2025 22:53:17 +0100 Subject: [PATCH] adding IMPL_M_1Test sort method to the abstract list sorting test --- .../java/de/uni_marburg/powersort/benchmark/JmhCgl.java | 4 ++-- .../test/java/de/uni_marburg/powersort/sort/ASortTest.java | 2 +- .../de/uni_marburg/powersort/sort/FasterFinnSortTest.java | 2 +- .../java/de/uni_marburg/powersort/sort/FinnSortTest.java | 2 +- .../java/de/uni_marburg/powersort/sort/IMPL_M_1Test.java | 7 +++++++ 5 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 app/src/test/java/de/uni_marburg/powersort/sort/IMPL_M_1Test.java diff --git a/app/src/jmh/java/de/uni_marburg/powersort/benchmark/JmhCgl.java b/app/src/jmh/java/de/uni_marburg/powersort/benchmark/JmhCgl.java index a58942e..484668f 100644 --- a/app/src/jmh/java/de/uni_marburg/powersort/benchmark/JmhCgl.java +++ b/app/src/jmh/java/de/uni_marburg/powersort/benchmark/JmhCgl.java @@ -23,7 +23,7 @@ public class JmhCgl extends JmhBase { // Either all or a selection of sort implementations. //@Param() - @Param({"TIM_SORT", "FINN_SORT", "IMPL_M_11"}) + @Param({"TIM_SORT", "FASTER_FINN_SORT", "IMPL_M_11"}) SortEnum sortEnum; @Override @@ -42,4 +42,4 @@ public class JmhCgl extends JmhBase { public void benchmark() { sortImpl.sort(workingCopy); } -} +} \ No newline at end of file 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 index dc7acf5..ca1e42f 100644 --- a/app/src/test/java/de/uni_marburg/powersort/sort/ASortTest.java +++ b/app/src/test/java/de/uni_marburg/powersort/sort/ASortTest.java @@ -4,4 +4,4 @@ public class ASortTest extends AbstractSortTest { ASortTest() { sortAlg = SortEnum.ASORT; } -} +} \ No newline at end of file diff --git a/app/src/test/java/de/uni_marburg/powersort/sort/FasterFinnSortTest.java b/app/src/test/java/de/uni_marburg/powersort/sort/FasterFinnSortTest.java index 1eff05c..d050e33 100644 --- a/app/src/test/java/de/uni_marburg/powersort/sort/FasterFinnSortTest.java +++ b/app/src/test/java/de/uni_marburg/powersort/sort/FasterFinnSortTest.java @@ -5,4 +5,4 @@ public class FasterFinnSortTest extends AbstractSortTest { sortAlg = SortEnum.FASTER_FINN_SORT; } -} +} \ No newline at end of file diff --git a/app/src/test/java/de/uni_marburg/powersort/sort/FinnSortTest.java b/app/src/test/java/de/uni_marburg/powersort/sort/FinnSortTest.java index 4ec57dd..d86cf07 100644 --- a/app/src/test/java/de/uni_marburg/powersort/sort/FinnSortTest.java +++ b/app/src/test/java/de/uni_marburg/powersort/sort/FinnSortTest.java @@ -4,4 +4,4 @@ public class FinnSortTest extends AbstractSortTest { FinnSortTest() { sortAlg = SortEnum.FINN_SORT; } -} +} \ No newline at end of file diff --git a/app/src/test/java/de/uni_marburg/powersort/sort/IMPL_M_1Test.java b/app/src/test/java/de/uni_marburg/powersort/sort/IMPL_M_1Test.java new file mode 100644 index 0000000..0b82c4b --- /dev/null +++ b/app/src/test/java/de/uni_marburg/powersort/sort/IMPL_M_1Test.java @@ -0,0 +1,7 @@ +package de.uni_marburg.powersort.sort; + +public class IMPL_M_1Test extends AbstractSortTest { + IMPL_M_1Test() { + sortAlg = SortEnum.IMPL_M_11; + } +} \ No newline at end of file