tracks/python/exercises/gigasecond/gigasecond_test.py in trackler-2.0.8.32 vs tracks/python/exercises/gigasecond/gigasecond_test.py in trackler-2.0.8.33

- old
+ new

@@ -1,32 +1,35 @@ -from datetime import datetime import unittest +from datetime import datetime + from gigasecond import add_gigasecond +# test cases adapted from `x-common//canonical-data.json` @ version: 1.0.0 + class GigasecondTest(unittest.TestCase): - def test_1(self): + def test_date_only_specification_of_time(self): self.assertEqual( add_gigasecond(datetime(2011, 4, 25)), datetime(2043, 1, 1, 1, 46, 40)) - def test_2(self): + def test_another_date_only_specification_of_time(self): self.assertEqual( add_gigasecond(datetime(1977, 6, 13)), datetime(2009, 2, 19, 1, 46, 40)) - def test_3(self): + def test_one_more_date_only_specification_of_time(self): self.assertEqual( add_gigasecond(datetime(1959, 7, 19)), datetime(1991, 3, 27, 1, 46, 40)) - def test_4(self): + def test_full_time_specified(self): self.assertEqual( add_gigasecond(datetime(2015, 1, 24, 22, 0, 0)), datetime(2046, 10, 2, 23, 46, 40)) - def test_5(self): + def test_full_time_with_day_roll_over(self): self.assertEqual( add_gigasecond(datetime(2015, 1, 24, 23, 59, 59)), datetime(2046, 10, 3, 1, 46, 39)) def test_yourself(self):