Sha256: 0354a139d8319c5c74d4b9536178672caec0e521b1a660ae98b33b471b108868

Contents?: true

Size: 422 Bytes

Versions: 13

Compression:

Stored size: 422 Bytes

Contents

# Test facets/recorder.rb

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

13 entries across 13 versions & 1 rubygems

Version Path
facets-2.8.0 test/more/test_recorder.rb
facets-2.7.0 test/more/test_recorder.rb
facets-2.6.0 test/more/test_recorder.rb
facets-2.3.0 test/class/test_recorder.rb
facets-2.4.0 test/test_recorder.rb
facets-2.4.1 test/test_recorder.rb
facets-2.4.3 test/more/test_recorder.rb
facets-2.4.2 test/more/test_recorder.rb
facets-2.4.4 test/more/test_recorder.rb
facets-2.5.1 test/more/test_recorder.rb
facets-2.5.0 test/more/test_recorder.rb
facets-2.4.5 test/more/test_recorder.rb
facets-2.5.2 test/more/test_recorder.rb