Sha256: ccab6e2f1ad9cb3547655c616e1d4005d6093aebd2534f93a2125fa826d92fef
Contents?: true
Size: 586 Bytes
Versions: 7
Compression:
Stored size: 586 Bytes
Contents
require File.dirname(__FILE__) + '/helper' class TestSystemPortablePoller < Test::Unit::TestCase def setup pid = Process.pid @process = System::PortablePoller.new(pid) end def test_time_string_to_seconds assert_equal 0, @process.bypass.time_string_to_seconds('0:00:00') assert_equal 0, @process.bypass.time_string_to_seconds('0:00:55') assert_equal 27, @process.bypass.time_string_to_seconds('0:27:32') assert_equal 75, @process.bypass.time_string_to_seconds('1:15:13') assert_equal 735, @process.bypass.time_string_to_seconds('12:15:13') end end
Version data entries
7 entries across 7 versions & 1 rubygems