Ad
  • Custom User Avatar

    You don't need to worry about this. The test will always call the amount of experience needed to get you to the rank it wants you at, if this is not happening it would be something wrong with your code. Just trust the tests to do what it says it does and you will be okay. Good luck!

  • Custom User Avatar

    Sorry, I don't understand the codes in the test. In python, I have a self.rank in the user class but I don't understand how the test is going to set the self.rank. If I define it as -8 in the init it will just always start with -8. How to I get the user.rank value from the test?

  • Custom User Avatar

    there is an error in java, I was able to ran the first teste because I was able to cast the object to Integer

    both method assertEquals(String,long,long) in Assert and method assertEquals(String,Object,Object) in Assert match
    src/test/java/UserTest.java:12: error: reference to assertEquals is ambiguous
    assertEquals("After applying rank of " + rank, expectedProgress, user.progress);