Move convert_to_sec() to lma_utils module
diff --git a/tests/lua/test_lma_utils.lua b/tests/lua/test_lma_utils.lua
index 8b6d198..7df99d7 100644
--- a/tests/lua/test_lma_utils.lua
+++ b/tests/lua/test_lma_utils.lua
@@ -91,6 +91,12 @@
assertEquals(ret, 'foo<BR/>ba')
end
+ function TestLmaUtils:test_convert_to_sec()
+ assertEquals(lma_utils.convert_to_sec(1000000001), 1)
+ assertEquals(lma_utils.convert_to_sec(1999999999), 1)
+ assertEquals(lma_utils.convert_to_sec(2000000001), 2)
+ end
+
lu = LuaUnit
lu:setVerbosity( 1 )
os.exit( lu:run() )