Ad
  • Custom User Avatar

    To everyone who thinks there is a broken test:
    Read the description to the end!

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    See the example in the description, at the end of the third year the population is 1213, not 1214.

  • Custom User Avatar

    How it is not broken? The requirement is "How many years does the town need to see its population greater than or equal to p"
    if population rounded down is 1214 then it is equal to p which is 1214 right? And since the question is greater than OR EQUAL, then the test is broken.

  • Custom User Avatar

    The requirement is "How many years does the town need to see its population greater than or equal to p"
    if p0 rounded down is 1214 then it is equal to p which is 1214 right? And since the question is greater than OR EQUAL, then the test is broken.

  • Custom User Avatar

    The way you did it, I think it will definitely reduce amount of complaints here. The final form I would maybe imagine a bit diferently: since it's a specific kind of input, I think it would deserve a separate it or describe (something like it("should handle fractional people correctly") or similar), ideally more than one input, and ideally presenting inputs with a test title or with a failure message.

    But in general I personally will be happy with any change which will reduce the amount of exchanges like "[ISSUE] Tests are wrong" / "[RESOLVED] No errors in tests".

  • Default User Avatar

    thanks for this kata I joyed