Sha256: bd6ae828d9ac5ceed0397b3656994b1646ce14750f68e251bff0a3c271b9b74e

Contents?: true

Size: 568 Bytes

Versions: 1

Compression:

Stored size: 568 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/string/cmp.rb
#
# Extracted Fri Feb 16 02:00:37 EST 2007
# Project.rb Test Extraction
#

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.8.49 test/lib/facets/core/string/test_cmp.rb