Sha256: 6d1d8c0c2ca3ab8a951ba5eca880c4c180df264e48a35dddf1049e45394c269d

Contents?: true

Size: 727 Bytes

Versions: 1

Compression:

Stored size: 727 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/nano/module/equate_on.rb
#
# Extracted Fri Oct 28 14:20:18 EDT 2005
# Unit Tools Reap Test Extractor
#

require 'nano/module/equate_on.rb'


  require 'test/unit'

  class TCModule < Test::Unit::TestCase

    def test_equate_on
      c = Class.new
      c.class_eval { attr_accessor :a, :b ; equate_on :a,:b }
      c1,c2 = c.new,c.new
      c1.a = 10; c1.b = 20
      c2.a = 10; c2.b = 20
      assert_equal( c1, c2 )
      c1.a = 10; c1.b = 10
      c2.a = 10; c2.b = 20
      assert_not_equal( c1, c2 )
      c1.a = 10; c1.b = 20
      c2.a = 20; c2.b = 20
      assert_not_equal( c1, c2 )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 test/lib/nano/module/test_equate_on.rb