Ad
  • Custom User Avatar

    The extra test scenarios are not needed, but if they can't ever happen it should be added to the Description.

    Why would a limit of the array matter? I am sure it will be ok as long as it fits in a Int32 which is up in the billions.

    What the array can contain, well objects of course. If you wanna make sure you only check strings you can if each element is of type string before checking the element further.

    So yeah I agree that the Kaka's Description could be a lot better, but the Kata itself is fine as it is.

    For a good example of a simple but good description I will suggest you look at my Kata Highest and Lowest, never had much in the form of misunderstandings with that.

  • Custom User Avatar

    Would like to ask more test scenarios and it's results.

    • return of haystack array of size of 0
    • return of haystack array of size of 1
    • return of haystack array with no needle found

    Also would like to clarrify some specifications

    • array limit of haystack
    • haystack objects types are limited to premitive data types?