Ad
  • Default User Avatar

    Just re-tested with the highest voted solution - still works. Are you trying the sample tests instead of submitting a solution?

  • Default User Avatar

    Per the description, all numbers under 100 are non-bouncy.

  • Default User Avatar

    I allowed contributors; didn't realize this was a requirement for getting out of beta.

  • Default User Avatar

    Example test harness, hope this helps:

    
    class RomanNumerals:
        def __init__(self, value):
            self.value = value
        @classmethod
        def to_roman(self,s):
            pass
        @classmethod
        def from_roman(self,s):
            pass
    
  • Default User Avatar

    How do I get my kata approved by moderators?

  • Default User Avatar

    How do I get my kata approved by moderators?

  • Default User Avatar

    Submitted a Python translation which also includes random ranges. Moved the current tests to the example tests so people have something to test on before submitting.

  • Default User Avatar

    It starts at -3 and ends at 1, thus -3-1. A-B, but in this case A happens to be negative and B positive.

  • Default User Avatar

    Added both, thanks for the input.

  • Default User Avatar

    I added some additional info about "what is a hostname" but other than that the above comment stands. I don't see a way to include test cases without giving away the answer. This is in line with many other "puzzle" problems, so I think it's reasonable.

  • Default User Avatar

    This is sorta hard to answer without a spoiler, but some numbers can be simultaneously increasing and decreasing. If you can figure that out you can find your missing numbers and get the correct answer for all test cases.

  • Default User Avatar

    I don't think there's an easy way to add tests without giving away the answers. Do you have an example description that is more descriptive?

  • Default User Avatar

    For those struggling to figure out how to pass this due to lack of tests:

    1. Dealing with the unbound methods error

    Method A: Bind your methods inside a class definition

    @classmethod
    def to_roman(self, n):

    Method B: Manually instantiate your class instance

    RomanNumerals = Roman()

    1. Example test cases

    test.assert_equals(RomanNumerals.to_roman(1000), 'M')
    test.assert_equals(RomanNumerals.from_roman('M'), 1000)

  • Default User Avatar

    See my solution for a bypass. Probably a lot of other ways, too.

  • Default User Avatar

    Python translation has been submitted!

  • Loading more items...