Ad
  • Custom User Avatar

    description says: "Date parameter could be a string or a Date object."

  • Custom User Avatar

    description says: "Date parameter could be a string or a Date object."

  • Custom User Avatar

    For all those who get an error 'NoMethodError...' please note that kata description says: "Date parameter could be a string or a Date object." Good luck.

  • Custom User Avatar

    Hi LogaJ, you shouldn't make any assumptions, because kata description clearly states: "Date parameter could be a string or a Date object."

  • Custom User Avatar

    thanks for the idea, however i did a simpler check for now.

  • Custom User Avatar

    a bit late, but i think i fixed "this" issue. talking about uninformative test output, this is a game kata, so not everything should be straightforward ;] also i give a hint to search for a key, so in my opinion that should be enough.

  • Custom User Avatar

    SomeGuy, your code produces double spaces between words - that's the problem.

  • Custom User Avatar

    Hello all,

    could you (those who didn't) please provide your solutions for further testing? Because some of your solutions have additional spaces and that's why they don't work. I. e. SnooperSnayk solution makes two spaces between words instead of one... For specialkv solution I suspect there might be a space at the end.

    Please make sure spaces are alright in your produced sentences.

  • Custom User Avatar

    Hi, I will take a deeper look into your comment when I have time ;]

  • Custom User Avatar

    Hi Fran,

    ok, you made me tripple-check this and finally convinced me! I was wrong as many others, sorry. :)
    So for the sake of peace I removed test cases which use years before 1582.

    Should I do something more?

    And thanks for your stubbornness to prove me wrong ;]

  • Custom User Avatar

    hi, ok @jhoffner, i will analyze these comments when i have more time.

  • Custom User Avatar
  • Custom User Avatar

    http://www.timeanddate.com/calendar/monthly.html?year=100&month=12&country=22

    Please read the description carefully again, you need to use Gregorian calendar and not United States calendar (whatever it is). Also there are some really good hints in the comments. Dates are not straightforward things apparently...

  • Custom User Avatar

    I really hope that all issues will be fixed, but no response from ankr yet...
    That's sad because it could be such a great kata.

  • Custom User Avatar

    thank you christianhammer for helping with an answer ;]

    what a troublesome kata i have created... ;]

    FlorianGrundig, your see new Date('0001 12 25') in JS tries to parse date and does it wrong in this case, it assumes that 25 is a year, so you get 2025-01-12 date...

  • Loading more items...