Ad
  • Custom User Avatar

    Had the same issue too. i didnt see the 3 consecutive value instruction until i finished solving the kata. And it took me over an hour :(

  • Custom User Avatar

    Im in kyu 6. i spent over an hour trying to solve this kata. it ended up working in the test. but had errors when i attempted. i guess ill continue studying to get better.

  • Custom User Avatar

    Great kata quizzing understanding of classes.

  • Custom User Avatar

    I love the idea of this kata, but the requirements and tests are whacky. The random tests for Python do not allign with the base tests and I had to hack my class to pass both.

  • Custom User Avatar

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

  • Custom User Avatar

    not bad, TY for the kata

  • Custom User Avatar

    I've spent hours trying to reproduce this error in my IDE, any help appreciated. From the random tests:

    > Random tests
    > Thing('Eqedspchjyfcwev').is_not_a.owjxbldzcqaq.is_not_a.kvhcljzcvpp.having(4).leqjws.each(lambda th: th.is_the.fsxkqpq_of.vzpvlziyjaim)
    > Thing(Eqedspchjyfcwev).is_not_a.owjxbldzcqaq
    > Thing(Eqedspchjyfcwev).is_not_a.kvhcljzcvpp
    > Thing(Eqedspchjyfcwev).having(4).leqjws
    > Thing(leqjws).each(lambda th: th.is_the.fsxkqpq_of.vzpvlziyjaim)
    > Testing each - test leqjw 1
    Traceback (most recent call last):
      File "/workspace/default/.venv/lib/python3.11/site-packages/codewars_test/test_framework.py", line 112, in wrapper
        func()
      File "/workspace/default/tests.py", line 105, in _
        assert_next(stuff, children_ips)
      File "/workspace/default/tests.py", line 608, in check
        self.func_arg.apply(stuff,name)
      File "/workspace/default/tests.py", line 489, in apply
        out = self.get_out(thing)
           ^^^^^^^^^^^^^^^^^^^
      File "/workspace/default/tests.py", line 500, in get_out
        out = getattr(out,attr)
              ^^^^^^^^^^^^^^^^^
    AttributeError: 'str' object has no attribute 'vzpvlziyjaim'
    

    I copy-pasted the content of solutions.py into my IDE and added these lines:

    t = Thing('Eqedspchjyfcwev')
    t.is_not_a.owjxbldzcqaq.is_not_a.kvhcljzcvpp.having(4).leqjws.each(lambda th: th.is_the.fsxkqpq_of.vzpvlziyjaim)
    print(t.leqjws[0].fsxkqpq_of) # -> vzpvlziyjaim
    

    I am passing all the Tests, only getting fails on the Attempt.

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    okay, so somehow a

    Dart

    translation happened

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    kata solution != kata suggestion

  • Custom User Avatar

    Incoherent instructions, remove after '#' should be replaced with something more concise

  • Custom User Avatar
  • Loading more items...