Sha256: 9399a90ce7174fbfe6a9316e9ae476ccc989bcba94df62f4e215089fe4f36560
Contents?: true
Size: 653 Bytes
Versions: 1
Compression:
Stored size: 653 Bytes
Contents
require 'test_helper' class TestString < Minitest::Test def test_timeline refute '1'.timeline? assert '00:00:42,407 --> 00:00:44,932'.timeline? refute '<i>"Winner, winner, chicken dinner."</i>'.timeline? end def test_shift_times assert_equal '00:00:44,407 --> 00:00:46,932', '00:00:42,407 --> 00:00:44,932'.shift_times(2) assert_equal '00:00:40,407 --> 00:00:42,932', '00:00:42,407 --> 00:00:44,932'.shift_times(-2) assert_equal '00:00:44,907 --> 00:00:47,432', '00:00:42,407 --> 00:00:44,932'.shift_times(2.5) assert_equal '00:00:39,907 --> 00:00:42,432', '00:00:42,407 --> 00:00:44,932'.shift_times(-2.5) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
subshift-0.0.1.pre | test/test_string.rb |