Skip to content

Commit db7f33a

Browse files
committed
Merge pull request #80 from benoittgt/master
Change test names to be easier to understand
2 parents 16f382f + 8e59fee commit db7f33a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gigasecond/gigasecond_test.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@
44

55
require_relative 'gigasecond'
66
class GigasecondTest < Minitest::Unit::TestCase
7-
def test_1
7+
def test_1_winter_time
88
gs = Gigasecond.from(Time.new(2011, 4, 25))
99
assert_equal Time.new(2043, 1, 1, 0 , 46, 40), gs
1010
end
1111

12-
def test_2
12+
def test_2_winter_time
1313
skip
1414
gs = Gigasecond.from(Time.new(1977, 6, 13))
1515
assert_equal Time.new(2009, 2, 19, 0, 46, 40), gs
1616
end
1717

18-
def test_3
18+
def test_3_summer_time
1919
skip
2020
gs = Gigasecond.from(Time.new(1959, 7, 19))
2121
assert_equal Time.new(1991, 3, 27, 0, 46, 40), gs
2222
end
2323

24-
def test_time_with_seconds
24+
def test_4_summer_time_with_seconds
2525
skip
2626
gs = Gigasecond.from(Time.new(1959, 7, 19, 23, 59, 59))
2727
assert_equal Time.new(1991, 3, 28, 0, 46, 39), gs
2828
end
2929

3030
# modify the test to test your 1 Gs anniversary
31-
def test_yourself
31+
def test_5_with_your_birthday
3232
skip
3333
your_birthday = Time.new(year, month, day)
3434
gs = Gigasecond.from(your_birthday)

0 commit comments

Comments
 (0)