• Test failure on date-and-time-converter mission

 

I would like to give some feedback about ...

From: https://py.checkio.org/mission/date-and-time-converter/solve/

HTTP_USER_AGENT:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36

These tests pass:

assert datetime("01.01.2000 00:00") == "1 January 2000 year 0 hours 0 minutes", "Millenium" assert datetime("09.05.1945 06:30") == "9 May 1945 year 6 hours 30 minutes", "Victory" assert date_time("20.11.1990 03:55") == "20 November 1990 year 3 hours 55 minutes", "Somebody was born"

However, there is an error with the following background test when the answer is checked: e.g.

  • Your result:"11 April 1812 year 1 hours 1 minutes"
  • Right result: "11 April 1812 year 1 hour 1 minute" <- result is missing 's' at end of minutes
  • Fail:date_time("11.04.1812 01:01")