unittests/tests/utils.js
branchpopcorn-port
changeset 256 8e1181b855bd
parent 254 cafaa694b709
child 285 b7aa28af2c10
--- a/unittests/tests/utils.js	Wed Nov 16 12:30:04 2011 +0100
+++ b/unittests/tests/utils.js	Wed Nov 16 16:06:18 2011 +0100
@@ -24,6 +24,10 @@
     equal(IriSP.timeToPourcent(2, 3), 66, "the function is immune to negative numbers");            
   });
   
+  test("test padding function", function() {
+    equal(IriSP.padWithZeros(3), "03", "function works correctly");
+  });
+  
   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;