Sha256: 84865aa0ab937ac8ba376f24d6d675eb6d94cf79c8af7191345db3ac1ad2bffc

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/string/cmp.rb
#
# Extracted Wed Aug 23 18:22:52 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/string/cmp.rb'


  require 'test/unit'

  class TCString < Test::Unit::TestCase

    def test_cmp
      assert_equal( 0, "abc".cmp("abc") )
      assert_equal( -1, "abc".cmp("abcd") )
      assert_equal( 1, "abcd".cmp("abc") )
      assert_equal( -1, "abc".cmp("bcd") )
      assert_equal( 1, "bcd".cmp("abc") )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.30 test/lib/facets/core/string/test_cmp.rb