Ad
  • Custom User Avatar

    you must create a pie chart relative to the list as a new list, adding up to 360

    No, the expected result often adds up to 359 or 361.

    should be rounded to the nearest integer

    The description should specify how to round half integers (up, down, ...).

  • Custom User Avatar

    Python: Random tests are vulnerable to input modification. See this

  • Custom User Avatar

    The description needs to be reworded. Angles can not be perpendicular or parallel to each other, this is not how geometry works. Angle planes can be perpendicular or parallel to each other, but that's a whole different problem in three dimensions.

    I suppose you mean something along the lines of "Angles a and b combined form a right angle".

  • Custom User Avatar

    im pretty sure that you cant really determine if the lines are perpindicular or parallel by only knowing the angles. (i might be wrong)

    the description seems to have incorrect info as it states 2 PI radians is equal to 180 degrees which is incorrect. 2 PI radians is 360 degrees. The test cases might accidentally follow this incorrect rule which might result in improper test cases

  • Custom User Avatar

    Random tests are incorrect:

    check_angle('3.5 pi', 0)
    'perpendicular' should equal None
    
  • Custom User Avatar

    I "solved" this kata in its current state, but the description should clarify what is a parallel angle and what is a perpendicular angle (or at least link to a website that gives these definitions). I basically relied on my knowledge of parallel lines and perpendicular lines and hoped this knowledge would apply to angles, too.

    Also: The description says that one of the angles will be specified in radians, but it's not really specified in radians, but in terms of pi. So in effect you have to convert from that to radians, then from radians to degrees.

    By looking at the results of the random tests, I was able to identify specific situations in which the kata expected None to be returned, but I have no idea why!

  • Custom User Avatar

    Fix some issues:

    • typo: whether the two angles or parallel or perpendicular
    • you don't explain which angles are considered perpendicular (90 vs 270 degrees)
    • conflicting info: 90 degrees = 0.5pi vs 180 degrees = 2pi
    • insufficient info when to return a result other than the ones you describe
  • Custom User Avatar

    Under what circumstances should the function return None?

    'perpendicular' should equal None
    
  • Custom User Avatar
            test.assert_equals(find_decimal_digits(64948), 11)
    

    No, 64948/64947 is a periodic number.


    No random tests.