Ad
  • Custom User Avatar

    Please add fixed tests with edge cases (see other languages)

  • Custom User Avatar

    What is duplicated origin points test?

    in one test it says:

    Should be able to deal with duplicated origin points: True should equal False

    in another test it says:

    Should be able to deal with duplicated origin points: False should equal True

  • Custom User Avatar

    As stated at Wikipedia:

    For discrete distributions, there is no universal agreement on selecting the quartile values.

    So I think it should be mentioned in description that which method(1, 2, 3, or 4) should be used for calculating lower and upper quartile of a sequence with odd number of data.

  • Custom User Avatar

    This is a low kyu kata so values of input arguments should be printed for failed assertions (or for all assertions).

  • Custom User Avatar

    Sample tests fail with the following error message:

    Error: Type mismatch in argument 'weight' at (1); passed INTEGER(4) to REAL(4)
    fixture.f90:8:34:
    
        8 |       call assertEquals("Normal", bmi(80, 1.80))
          |                                  1
    Error: Type mismatch in argument 'weight' at (1); passed INTEGER(4) to REAL(4)
    fixture.f90:9:38:
    
        9 |       call assertEquals("Overweight", bmi(90, 1.80))
          |                                      1
    Error: Type mismatch in argument 'weight' at (1); passed INTEGER(4) to REAL(4)
    fixture.f90:10:33:
    
       10 |       call assertEquals("Obese", bmi(110, 1.80))
          |                                 1
    Error: Type mismatch in argument 'weight' at (1); passed INTEGER(4) to REAL(4)
    
  • Custom User Avatar

    Older kata are usually ranked higher, and kata rating cannot be changed.

    Resolving this suggestion.

  • Custom User Avatar

    I don't plan on getting this approved anymore, but I added it, they only go up to 1000, no reason in going that big for a theory focused kata.

    I didn't add the values for bet or prize because in theory they can go up to like 1_000_000 but it never does and it doesn't really matter.

    I'm just solving the issue so I don't have it marked as a due issue on my profile.

  • Custom User Avatar

    You cannot claim that the probability of a coin landing heads is heads / total. If I threw a coin 3 times and it didn't land heads in any of those, then it's reasonable to say that the coin is unlikely to roll heads, but not impossible. 

    While I cannot tell you the actual value, you'll see that, while the probability is low, it's not zero, and it's good enough for the values of the bet.

  • Custom User Avatar

    Why the test prediction(0, 3, 1, 6) should be True. obviously there is no chance to win any prize!

  • Custom User Avatar

    With the Hint provided, I think it should be rated as 7kyu!