Ad
  • Custom User Avatar

    Thanks for answering! I'd fixed the bug in my codes to the kata.

  • Custom User Avatar

    Didn't it went wrong when checking for "Integer division"?

  • Custom User Avatar

    My code can pass Sample Tests but not Attempt. It outputs:

    Time: 2596ms Passed: 0 Failed: 1
    Test Results:
     Testing Peano numbers
     Log
    Addition...
    Subtract...
    Multiplication...
    Integer division...
     Should work for some tests
    expected: Succ (Succ Zero)
     but got: Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ (Succ Zero))))))))))
    Completed in 0.1060 seconds
    

    I can't get the test details so I don't know which case the error belongs to.

    Could the Sensei give some friendly message in the log? Thanks!