|
4 | 4 |
|
5 | 5 | require_relative 'gigasecond'
|
6 | 6 | class GigasecondTest < Minitest::Unit::TestCase
|
7 |
| - def test_1 |
| 7 | + def test_1_winter_time |
8 | 8 | gs = Gigasecond.from(Time.new(2011, 4, 25))
|
9 | 9 | assert_equal Time.new(2043, 1, 1, 0 , 46, 40), gs
|
10 | 10 | end
|
11 | 11 |
|
12 |
| - def test_2 |
| 12 | + def test_2_winter_time |
13 | 13 | skip
|
14 | 14 | gs = Gigasecond.from(Time.new(1977, 6, 13))
|
15 | 15 | assert_equal Time.new(2009, 2, 19, 0, 46, 40), gs
|
16 | 16 | end
|
17 | 17 |
|
18 |
| - def test_3 |
| 18 | + def test_3_summer_time |
19 | 19 | skip
|
20 | 20 | gs = Gigasecond.from(Time.new(1959, 7, 19))
|
21 | 21 | assert_equal Time.new(1991, 3, 27, 0, 46, 40), gs
|
22 | 22 | end
|
23 | 23 |
|
24 |
| - def test_time_with_seconds |
| 24 | + def test_4_summer_time_with_seconds |
25 | 25 | skip
|
26 | 26 | gs = Gigasecond.from(Time.new(1959, 7, 19, 23, 59, 59))
|
27 | 27 | assert_equal Time.new(1991, 3, 28, 0, 46, 39), gs
|
28 | 28 | end
|
29 | 29 |
|
30 | 30 | # modify the test to test your 1 Gs anniversary
|
31 |
| - def test_yourself |
| 31 | + def test_5_with_your_birthday |
32 | 32 | skip
|
33 | 33 | your_birthday = Time.new(year, month, day)
|
34 | 34 | gs = Gigasecond.from(your_birthday)
|
|
0 commit comments