Sha256: 168f9d22d3bac2135694d13184e77ec5d46d3eb0862f68e3d3c88fe055b82964

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

require 'test_helper'

class TestTime < Minitest::Test
  def test_parse
    time = Subshift::Time.parse('00:00:00,000')
    assert_equal 0, time.total_ms
  end

  def test_plus
    time = Subshift::Time.parse('00:00:00,000') + 1
    assert_equal 1000, time.total_ms
  end

  def test_to
    time = Subshift::Time.parse('12:34:56,789')
    assert_equal '12:34:56,789', time.send(:to_s)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
subshift-0.0.2 test/test_time.rb