java.lang.AssertionError: expected:<13> but was:<0>

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.

Check your pattern declaration or check your assert declaration.


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

  • Assertion failure for calculating hour difference
    via by Unknown author,
  • GitHub comment 6007#134166006
    via GitHub by hasancelik
  • Tests failing on Windows
    via GitHub by freddy24
  • GitHub comment 5512#120887915
    via GitHub by sancar
    • java.lang.AssertionError: expected:<13> but was:<0> at at org.junit.Assert.failNotEquals( at org.junit.Assert.assertEquals( at org.junit.Assert.assertEquals( at

    Users with the same issue

    rocday1 times, last one,
    musketyr10 times, last one,
    jokester3 times, last one,
    Axelo1 times, last one,
    pulse003 times, last one,
    94 more bugmates