Sha256: 94db5bd5de0cfb32d1e7bfd4eb725dbd39cecf67a57143afed1cdfe58bd2a073

Contents?: true

Size: 697 Bytes

Versions: 10

Compression:

Stored size: 697 Bytes

Contents

  #  _____         _
  # |_   _|__  ___| |_
  #   | |/ _ \/ __| __|
  #   | |  __/\__ \ |
  #   |_|\___||___/\__|
  #
  # for lib/facets/string/natcmp.rb
  #
  # Extracted Mon Sep 03 16:23:07 -0700 2007
  # w/ Test Extraction Ratchet
  #

 require 'facets/string/natcmp.rb'



  require 'test/unit'

  class TestStringCompare < Test::Unit::TestCase

    def test_natcmp
      assert( -1, "my_prog_v1.1.0".natcmp("my_prog_v1.2.0") )
      assert( -1, "my_prog_v1.2.0".natcmp("my_prog_v1.10.0") )
      assert( 1, "my_prog_v1.2.0".natcmp("my_prog_v1.1.0") )
      assert( 1, "my_prog_v1.10.0".natcmp("my_prog_v1.2.0") )
      assert( 0, "my_prog_v1.0.0".natcmp("my_prog_v1.0.0") )
    end

  end



Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
facets-2.0.0 test/unit/string/test_natcmp.rb
facets-2.0.1 test/unit/string/test_natcmp.rb
facets-2.0.2 test/unit/string/test_natcmp.rb
facets-2.0.5 test/unit/string/test_natcmp.rb
facets-2.0.3 test/unit/string/test_natcmp.rb
facets-2.1.2 test/unit/string/test_natcmp.rb
facets-2.0.4 test/unit/string/test_natcmp.rb
facets-2.1.0 test/unit/string/test_natcmp.rb
facets-2.1.1 test/unit/string/test_natcmp.rb
facets-2.1.3 test/unit/string/test_natcmp.rb