Sha256: d6c15a5fea24080fddaf7861f46dbda65aafbe6fefaf9697a86c4ee9674293a2

Contents?: true

Size: 318 Bytes

Versions: 6

Compression:

Stored size: 318 Bytes

Contents

# encoding: UTF-8

require "helper"

class TestHelper < Test::Unit::TestCase

  include Helper

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

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

    assert v < "2.1"
    assert v < "2.0.1"
    assert v < "2.0.0.1"

    assert v == "2.0.0"
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
remq-0.0.4 vendor/bundle/gems/redis-3.0.2/test/helper_test.rb
remq-0.0.3 vendor/bundle/gems/redis-3.0.2/test/helper_test.rb
redis-3.0.2 test/helper_test.rb
redis-3.0.1 test/helper_test.rb
redis-3.0.0 test/helper_test.rb
redis-3.0.0.rc2 test/helper_test.rb