Ad
  • Custom User Avatar

    Writing a bunch of if's and doing arithmetic is not a novel kata idea, and I think I've already seen an exact same kata before too.

  • Custom User Avatar

    new python test framework should be added, no?

  • Custom User Avatar

    @Oliver.Hynds,

    Your description doesn't specify that the operations must be applied in a certain order. For this test case: get_op(2, 2, 4) my solution returned multiply but you expected add.

    Also, your kata needs random test cases.

    Thanks!

  • Custom User Avatar

    To be fair:

    get_op(2, 2, 4)
    get_op(4, 2, 2)
    get_op(1, 1, 1)
    get_op(any X, 1, same X)
    get_op(any X, 0, same X)
    

    are ambiguous. You should probably force the 2 numbers to be different and > 2