Ad
  • Custom User Avatar

    @mmdotz I don't know what your code/solution looks like, but try commenting all your code and just run "p message". The test cases should appear in the "Output" pane.

  • Custom User Avatar

    Yes, there is a way to see what tests fail without forfeiting the kata/challenge.

    Ruby Example:

    def validate message 
      # your failing solution here 
      # once you get the long list of failing test cases, note the order in which they appear in (e.g. 2nd from the last test case is the one that fails)
      p message 
      # this will output all test cases and you can scroll to find the one you noted earlier 
    end
    

    JavaScript Example:

    function validate(message){
      // your failing solution here // once you get the long list of failing test cases, note the order in which they appear in (e.g. 2nd from the last test case is the one that fails)
      console.log(message); // this will output all test cases and you can scroll to find the one you noted earlier
    }
    
  • Custom User Avatar

    Very clever solution in that you don't utilize any conditionals (e.g. condition ? true : false), but difficult to reason about or grok in a production setting.