Sha256: 1474b40945b17fd9291298ed816773f7a840c1678383b7d4af264f4ade7536c3

Contents?: true

Size: 362 Bytes

Versions: 5

Compression:

Stored size: 362 Bytes

Contents

# encoding: UTF-8

require "helper"

class TestHelper < Test::Unit::TestCase

  include Helper

  def test_version_comparison
    v = Version.new("2.0.1")

    assert v > "1"
    assert v > "2"
    assert v < "3"
    assert v < "10"

    assert v < "2.1"
    assert v < "2.0.2"
    assert v < "2.0.1.1"
    assert v < "2.0.10"

    assert v == "2.0.1"
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
redis-3.0.5 test/helper_test.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/redis-3.0.4/test/helper_test.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/redis-3.0.4/test/helper_test.rb
redis-3.0.4 test/helper_test.rb
redis-3.0.3 test/helper_test.rb