Sha256: fe11ee0b12aafac6fa921b6f7f62c7976a50f0595f6cf821408f3ec0468cad56

Contents?: true

Size: 678 Bytes

Versions: 9

Compression:

Stored size: 678 Bytes

Contents

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

 require 'facets/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

9 entries across 9 versions & 1 rubygems

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