java.lang.AssertionError: Invalid result: 1 + 1 + 2 + 3 + 5 expected:<12.0> but was:<12>

tip

Check your pattern declaration or check your assert declaration.


rafael

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

  • substring() method for linked list object
    via Stack Overflow by boop
    ,
  • GitHub comment 72#45003047
    via GitHub by Neiko2002
    ,
    • java.lang.AssertionError: Invalid result: 1 + 1 + 2 + 3 + 5 expected:<12.0> but was:<12> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.apache.commons.scxml2.env.javascript.JSEvaluatorTest.testStandardExpressions(JSEvaluatorTest.java:184)

    Users with the same issue

    odd
    odd17 times, last one,
    jf-ast
    jf-ast1 times, last one,
    Axelo
    Axelo2 times, last one,
    rocday
    rocday1 times, last one,
    andyglick
    andyglick2 times, last one,
    94 more bugmates