コード例 #1
0
ファイル: gigasecond_test.py プロジェクト: bedekelly/exercism
 def test_yourself(self):
     # customize this to test your birthday and find your gigasecond date:
     your_birthday = date(1997, 4, 8)
     your_gigasecond = date(2028, 12, 15)
     self.assertEqual(
         your_gigasecond,
         add_gigasecond(your_birthday)
     )
コード例 #2
0
    def test_yourself(self):
        # customize this to test your birthday and find your gigasecond date:
        your_birthday = date(1776, 7, 4)
        your_gigasecond = date(1808, 3, 13)

        self.assertEqual(
            your_gigasecond,
            add_gigasecond(your_birthday)
        )
コード例 #3
0
    def test_yourself(self):
 
        your_birthday = date(1970, 1, 1)
        your_gigasecond = date(2001, 9, 9)

        self.assertEqual(
            your_gigasecond,
            add_gigasecond(your_birthday)
        )
コード例 #4
0
    def test_yourself(self):
        # customize this to test your birthday and find your gigasecond date:
        your_birthday = date(1989, 9, 17)
        your_gigasecond = date(2021, 5, 26) # sqrt: 2020-12-20. katrin.im.sommer: 2021-5-26

        self.assertEqual(
            your_gigasecond,
            add_gigasecond(your_birthday)
        )
コード例 #5
0
    def test_yourself(self):
        # customize this to test your birthday and find your gigasecond date:
        your_birthday = datetime(1978, 3, 4)
        your_gigasecond = datetime(2009, 11, 10, 1, 46,40)

        self.assertEqual(
            your_gigasecond,
            add_gigasecond(your_birthday)
        )
コード例 #6
0
    def test_yourself(self):
        # customize this to test your birthday and find your gigasecond date:
        your_birthday = datetime(1989, 5, 24)
        your_gigasecond = datetime(2015, 6, 5, 1, 46, 40)

        self.assertEqual(
            your_gigasecond,
            add_gigasecond(your_birthday)
        )
コード例 #7
0
ファイル: gigasecond_test.py プロジェクト: rootulp/exercism
    def test_yourself(self):
        # customize this to test your birthday and find your gigasecond date:
        your_birthday = date(1994, 7, 18)
        your_gigasecond = date(2026, 3, 26)

        self.assertEqual(
            your_gigasecond,
            add_gigasecond(your_birthday)
        )
コード例 #8
0
ファイル: gigasecond_test.py プロジェクト: jealous/exercism
    def test_yourself(self):
        # customize this to test your birthday and find your gigasecond date:
        your_birthday = date(1970, 1, 1)
        your_gigasecond = date(2001, 9, 9)

        self.assertEqual(
            your_gigasecond,
            add_gigasecond(your_birthday)
        )
コード例 #9
0
 def test_date_only_specification_of_time(self):
     self.assertEqual(
         add_gigasecond(datetime(2011, 4, 25)),
         datetime(2043, 1, 1, 1, 46, 40))
コード例 #10
0
 def test_2(self):
     self.assertEqual(
         date(2009, 2, 19),
         add_gigasecond(date(1977, 6, 13))
     )
コード例 #11
0
 def test_another_date_only_specification_of_time(self):
     self.assertEqual(add_gigasecond(datetime(1977, 6, 13)),
                      datetime(2009, 2, 19, 1, 46, 40))
コード例 #12
0
 def test_full_time_specified(self):
     self.assertEqual(
         add_gigasecond(datetime(2015, 1, 24, 22, 0, 0)),
         datetime(2046, 10, 2, 23, 46, 40))
コード例 #13
0
 def test_full_time_specified(self):
     self.assertEqual(add_gigasecond(datetime(2015, 1, 24, 22, 0, 0)),
                      datetime(2046, 10, 2, 23, 46, 40))
コード例 #14
0
 def test_3(self):
     self.assertEqual(add_gigasecond(datetime(1959, 7, 19)),
                      datetime(1991, 3, 27, 1, 46, 40))
コード例 #15
0
 def test_4(self):
     self.assertEqual(add_gigasecond(datetime(2015, 1, 24, 22, 0, 0)),
                      datetime(2046, 10, 2, 23, 46, 40))
コード例 #16
0
    def test_yourself(self):
        # customize this to test your birthday and find your gigasecond date:
        your_birthday = datetime(1986, 1, 30)
        your_gigasecond = datetime(2017, 10, 8, 1, 46, 40)

        self.assertEqual(add_gigasecond(your_birthday), your_gigasecond)
コード例 #17
0
 def test_2(self):
     self.assertEqual(add_gigasecond(datetime(1977, 6, 13)),
                      datetime(2009, 2, 19, 1, 46, 40))
コード例 #18
0
    def test_yourself(self):
        # customize this to test your birthday and find your gigasecond date:
        your_birthday = datetime(1989, 10, 14, 10)
        your_gigasecond = datetime(2021, 6, 22, 11, 46, 40)

        self.assertEqual(add_gigasecond(your_birthday), your_gigasecond)
コード例 #19
0
    def test_yourself(self):
        # customize this to test your birthday and find your gigasecond date:
        your_birthday = datetime(1970, 1, 1)
        your_gigasecond = datetime(2001, 9, 9, 1, 46, 40)

        self.assertEqual(add_gigasecond(your_birthday), your_gigasecond)
コード例 #20
0
 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))
コード例 #21
0
 def test_another_date_only_specification_of_time(self):
     self.assertEqual(
         add_gigasecond(datetime(1977, 6, 13)),
         datetime(2009, 2, 19, 1, 46, 40))
コード例 #22
0
 def test_2(self):
     self.assertEqual(
         datetime(2009, 2, 19, 1, 46, 40),
         add_gigasecond(datetime(1977, 6, 13))
     )
コード例 #23
0
 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))
コード例 #24
0
 def test_4(self):
     self.assertEqual(
         datetime(2046, 10, 2, 23, 46, 40),
         add_gigasecond(datetime(2015, 1, 24, 22, 0, 0))
     )
コード例 #25
0
 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))
コード例 #26
0
 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))
コード例 #27
0
 def test_3(self):
     self.assertEqual(
         datetime(1991, 3, 27, 1, 46, 40),
         add_gigasecond(datetime(1959, 7, 19))
     )
コード例 #28
0
 def test_1(self):
     self.assertEqual(
         datetime(2043, 1, 1, 1, 46, 40),
         add_gigasecond(datetime(2011, 4, 25))
     )
コード例 #29
0
 def test_5(self):
     self.assertEqual(
         datetime(2046, 10, 3, 1, 46, 39),
         add_gigasecond(datetime(2015, 1, 24, 23, 59, 59))
     )
コード例 #30
0
 def test_date_only_specification_of_time(self):
     self.assertEqual(add_gigasecond(datetime(2011, 4, 25)),
                      datetime(2043, 1, 1, 1, 46, 40))
コード例 #31
0
 def test_1(self):
     self.assertEqual(
         datetime(2043, 1, 1, 1, 46, 40),
         add_gigasecond(datetime(2011, 4, 25))
     )
コード例 #32
0
 def test_5(self):
     self.assertEqual(
         datetime(2046, 10, 3, 1, 46, 39),
         add_gigasecond(datetime(2015, 1, 24, 23, 59, 59))
     )