Sha256: 8c14b6faeedf685398613548814dbd47cb819897e35bd0cb0de945b02f3af46e

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/more/recorder.rb
#
# Extracted Fri Feb 16 02:00:36 EST 2007
# Project.rb Test Extraction
#

require 'facets/more/recorder.rb'


  require 'test/unit'

  #class Object
  #  def &(o)
  #    self && o
  #  end
  #end

  class TCRecorder < Test::Unit::TestCase

    class Z
      def name ; 'George' ; end
      def age ; 12 ; end
    end

    def setup
      @z = Z.new
    end

    def test_001
      r = Recorder.new
      q = proc { |x| (x.name == 'George') & (x.age > 10) }
      x = q[r]
      assert( x.__call__(@z) )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/more/test_recorder.rb