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