java.lang.AssertionError

When entering 13,5 :A number is wrong! Output: Approximation: 3.0054532781171837 Library: 2.6026896854443837 Terms: 751363 in the Beginning expected:<2.602682523751> but was:<3.0054532781171837>

Samebug tips1

Check your pattern declaration or check your assert declaration.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3571

Stack trace

  • java.lang.AssertionError: When entering 13,5 :A number is wrong! Output: Approximation: 3.0054532781171837 Library: 2.6026896854443837 Terms: 751363 in the Beginning expected:<2.602682523751> but was:<3.0054532781171837> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:494) at de.ostfalia.gdp.ss15.test.StdioHelper.assertEquals(StdioHelper.java:115) at de.ostfalia.gdp.ss15.test.StdioHelper.checkNumbers(StdioHelper.java:92) at de.ostfalia.gdp.ss15.test.LogarithmusTest.logarithmusTest13_5(LogarithmusTest.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

AxeloAxelo
5 times, last one
jf-astjf-ast
Once,
oddodd
3 times, last one
mauritiusmauritius
Once,
musketyrmusketyr
4 times, last one
98 more bugmates