Module:Duration/testcases

-- Unit tests for Module:Duration. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_sumHMS self:preprocess_equals_many('', {       {' 10:10 | 20:20 | 30:30 ', '1 hour and 1 minute'},        {' 10:10 | 20:20 | 30:30 | units = seconds', '3,660 seconds'},        {' 10:11 | 20:21 | 30:31 | units = minutes seconds', '61 minutes and 3 seconds'},        {' 10:10 | 20:20 | 30:30 | glugluglu | a30:40 ', '1 hour and 1 minute'}, -- ignore malformed entries    }) end return p