unittests/tests/utils.js
branchpopcorn-port
changeset 254 cafaa694b709
parent 253 95c6b77f005e
child 256 8e1181b855bd
--- a/unittests/tests/utils.js	Wed Nov 16 11:40:57 2011 +0100
+++ b/unittests/tests/utils.js	Wed Nov 16 12:28:18 2011 +0100
@@ -27,9 +27,10 @@
   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");
+    deepEqual(IriSP.secondsToTime(t), {"hours" : h, "minutes" : m, "seconds" : s}, 
+              "the converted time is correct");
     
     t = -t;
-    deepEqual(IriSP.secondsToTime(t), [h, m, s], "the function is immune to negative numbers.");
+    deepEqual(IriSP.secondsToTime(t),  {"hours" : h, "minutes" : m, "seconds" : s}, "the function is immune to negative numbers.");
   });
 }
\ No newline at end of file