@@ -4,40 +4,40 @@ describe('gigasecond', function()
44 it (' date only specification of time' , function ()
55 local momentA = os.time ({ year = 2011 , month = 4 , day = 25 , hour = 0 , min = 0 , sec = 0 })
66 local momentB = os.time ({ year = 2043 , month = 1 , day = 1 , hour = 1 , min = 46 , sec = 40 })
7- local result = gigasecond .anniversary (momentA )
7+ local actual = gigasecond .anniversary (momentA )
88 local expected = os.date (' !%x' , momentB )
9- assert .are .equals (expected , result )
9+ assert .are .equals (expected , actual )
1010 end )
1111
1212 it (' second test for date only specification of time' , function ()
1313 local momentA = os.time ({ year = 1977 , month = 6 , day = 13 , hour = 0 , min = 0 , sec = 0 })
1414 local momentB = os.time ({ year = 2009 , month = 2 , day = 19 , hour = 1 , min = 46 , sec = 40 })
15- local result = gigasecond .anniversary (momentA )
15+ local actual = gigasecond .anniversary (momentA )
1616 local expected = os.date (' !%x' , momentB )
17- assert .are .equals (expected , result )
17+ assert .are .equals (expected , actual )
1818 end )
1919
2020 it (' third test for date only specification of time' , function ()
2121 local momentA = os.time ({ year = 1959 , month = 7 , day = 19 , hour = 0 , min = 0 , sec = 0 })
2222 local momentB = os.time ({ year = 1991 , month = 3 , day = 27 , hour = 1 , min = 46 , sec = 40 })
23- local result = gigasecond .anniversary (momentA )
23+ local actual = gigasecond .anniversary (momentA )
2424 local expected = os.date (' !%x' , momentB )
25- assert .are .equals (expected , result )
25+ assert .are .equals (expected , actual )
2626 end )
2727
2828 it (' full time specified' , function ()
2929 local momentA = os.time ({ year = 2015 , month = 1 , day = 24 , hour = 22 , min = 0 , sec = 0 })
3030 local momentB = os.time ({ year = 2046 , month = 10 , day = 2 , hour = 23 , min = 46 , sec = 40 })
31- local result = gigasecond .anniversary (momentA )
31+ local actual = gigasecond .anniversary (momentA )
3232 local expected = os.date (' !%x' , momentB )
33- assert .are .equals (expected , result )
33+ assert .are .equals (expected , actual )
3434 end )
3535
3636 it (' full time with day roll-over' , function ()
3737 local momentA = os.time ({ year = 2015 , month = 1 , day = 24 , hour = 23 , min = 59 , sec = 59 })
3838 local momentB = os.time ({ year = 2046 , month = 10 , day = 3 , hour = 1 , min = 46 , sec = 39 })
39- local result = gigasecond .anniversary (momentA )
39+ local actual = gigasecond .anniversary (momentA )
4040 local expected = os.date (' !%x' , momentB )
41- assert .are .equals (expected , result )
41+ assert .are .equals (expected , actual )
4242 end )
4343end )
0 commit comments