Array: selectionsort iterative fehlerhafter Test

Yogi
Windoof-User
Windoof-User
Beiträge: 30
Registriert: 19. Okt 2006 11:09
Kontaktdaten:

Array: selectionsort iterative fehlerhafter Test

Beitrag von Yogi » 2. Jul 2017 10:40

Hallo,

Wenn das Array sortiert ist, dann muss an index 0 die 13 und nicht die 130 kommen.
Failurereport
Testheadder – basicTest_for_sorting_like_selectionsort(array.sort.tests_selectionSort_iterative.TestSelectionSort)
Message – The input sequence was: [23, 41, 32, 510, 13, 130 ]Triangle-change was wrong. Test failed at iteration with index: 0 expected:<130> but was:<13>
Trace – java.lang.AssertionError: The input sequence was: [23, 41, 32, 510, 13, 130 ]Triangle-change was wrong. Test failed at iteration with index: 0 expected:<130> but was:<13> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:118) at array.sort.tests_selectionSort_iterative.TestSelectionSort.basicTest_for_sorting_like_selectionsort(TestSelectionSort.java:195) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.lang.Thread.run(Thread.java:748)

goerlibe
Mausschubser
Mausschubser
Beiträge: 51
Registriert: 24. Apr 2017 19:22

Re: Array: selectionsort iterative fehlerhafter Test

Beitrag von goerlibe » 4. Jul 2017 09:50

viewtopic.php?f=167&t=36244

wurde hier und in einigen anderen Threads schon erörtert - aber immer noch nicht behoben

Yogi
Windoof-User
Windoof-User
Beiträge: 30
Registriert: 19. Okt 2006 11:09
Kontaktdaten:

Re: Array: selectionsort iterative fehlerhafter Test

Beitrag von Yogi » 6. Jul 2017 11:59

Es hat sich etwas getan, aber dieser Testfall ist immer noch falsch.
Failurereport
Testheadder – basicTest_for_sorting_like_selectionsort(array.sort.tests_selectionSort_iterative.TestSelectionSort)
Message – The input sequence was: [23, 41, 32, 510, 13, 130 ]Triangle-change was wrong. Test failed at iteration with index: 0 expected:<23> but was:<13>
Trace – java.lang.AssertionError: The input sequence was: [23, 41, 32, 510, 13, 130 ]Triangle-change was wrong. Test failed at iteration with index: 0 expected:<23> but was:<13> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:118) at array.sort.tests_selectionSort_iterative.TestSelectionSort.basicTest_for_sorting_like_selectionsort(TestSelectionSort.java:195) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298) at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.lang.Thread.run(Thread.java:748)

goerlibe
Mausschubser
Mausschubser
Beiträge: 51
Registriert: 24. Apr 2017 19:22

Re: Array: selectionsort iterative fehlerhafter Test

Beitrag von goerlibe » 29. Aug 2017 11:16

viewtopic.php?f=167&t=36244

Lösung im genannten Thread..

Antworten

Zurück zu „Archiv“