| author | hamidouk |
| Wed, 16 Nov 2011 11:20:52 +0100 | |
| branch | popcorn-port |
| changeset 252 | fd84e0fb26d8 |
| child 253 | 95c6b77f005e |
| permissions | -rw-r--r-- |
function test_utils() { module("Utility function tests"); test("test function to convert from seconds to a time", function() { var h = 13, m = 7, s = 41; var t = 13 * 3600 + 7* 60 + 41; deepEqual(IriSP.secondsToTime(t), [h, m, s], "the converted time is correct"); t = -t; deepEqual(IriSP.secondsToTime(t), [h, m, s], "the function is immune to negative numbers."); }); }