equal
deleted
inserted
replaced
25 }); |
25 }); |
26 |
26 |
27 test("test function to convert from seconds to a time", function() { |
27 test("test function to convert from seconds to a time", function() { |
28 var h = 13, m = 7, s = 41; |
28 var h = 13, m = 7, s = 41; |
29 var t = 13 * 3600 + 7* 60 + 41; |
29 var t = 13 * 3600 + 7* 60 + 41; |
30 deepEqual(IriSP.secondsToTime(t), [h, m, s], "the converted time is correct"); |
30 deepEqual(IriSP.secondsToTime(t), {"hours" : h, "minutes" : m, "seconds" : s}, |
|
31 "the converted time is correct"); |
31 |
32 |
32 t = -t; |
33 t = -t; |
33 deepEqual(IriSP.secondsToTime(t), [h, m, s], "the function is immune to negative numbers."); |
34 deepEqual(IriSP.secondsToTime(t), {"hours" : h, "minutes" : m, "seconds" : s}, "the function is immune to negative numbers."); |
34 }); |
35 }); |
35 } |
36 } |