• Custom User Avatar

    Traceback (most recent call last):
    File "main.py", line 46, in
    Test.assert_equals(triangle_type(a, b, c), tt(a, b, c))
    NameError: name 'tt' is not defined

    I have the same

  • Custom User Avatar

    Just ask if you want random tests in JS and Python too :)

  • Custom User Avatar

    I just went through the existing languages. And there seems to be two issues left, even though this kata went live:

    1. The example test cases in Java don't compile. They should be fixed. See comment further down.
    2. Methods in C# normally starts with an uppercase letter. So the method should be called Slope. I don't really think this should be fixed after the kata wen't live, since it will invalidate a bunch of good, working solutions. But just remember it for future katas. :-)
  • Custom User Avatar

    Yes, they still persist. It's a syntax error in the example test cases:

      assertEquals("undefined",s.slope([-10,6,-10,3])); // Won't compile
      
      assertEquals("undefined",s.slope(new int[] {-10,6,-10,3})); // Correct
    
  • Custom User Avatar

    thank you. I was pretty new here, and not very familiar with how the search works

  • Custom User Avatar

    I don't think so, this kata has more translations so I guess.. just be more careful?

  • Custom User Avatar

    does this mean I have to delete this?

  • Custom User Avatar

    Maybe because you have my-languages on because I see it. Try this.. http://www.codewars.com/kata/search/javascript?q=slope&beta=false . Even though you didn't mean to create a duplicate you have...

  • Custom User Avatar

    This kata was not duplicated. I was reviewing some basic algebra when I had just joined this site, then I realized it'd be a great idea to write a kata that asked the user to calculate to slope. I proceeded to search for "slope" in the kata search bar, but none came up. that as when I wrote this kata. When nothing came up, I decided to make one.Also if you search for a kata involving "slope" right now, mine is the only one that comes up. http://www.codewars.com/kata/search/my-languages?q=slope&beta=false

  • Custom User Avatar

    This appears to be somewhat of a duplication Here's another kata which has the same issue only difference is the input parameters and expected output.

  • Custom User Avatar

    also, some of these problems seem to be out of my domain. When I tried to republish the java kata, it took me about an hour (I had to eventually close the page). this isn't the first time I've changed this error.

  • Custom User Avatar

    are you still having these errors?

  • Custom User Avatar

    thank you for the corrections. I was pretty sure I changed it. error on my part

  • Custom User Avatar

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

  • Custom User Avatar

    And also please change test case 2 for Java (you say:"The coordinates should have been [-7,2,-7,4] instead of [7,2,-7,4]").

  • Loading more items...