Sha256: e637c6fd82838bcf75d6dca87970e9f1922a7385d4f5edbaa1c0b0d7acf69bfe

Contents?: true

Size: 219 Bytes

Versions: 1

Compression:

Stored size: 219 Bytes

Contents

require 'simplecheck'
include Simplecheck

# Block passed implicitly to check
check( 2, 4 ){ |x| x.even? }

# Block passed explicity to check
is_even = lambda{ |x| x.even? } 
check( 2, 4, &is_even  )

puts "All passed"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simplecheck-0.9 examples/block_example.rb