examples/block_example.rb in simplecheck-1.0 vs examples/block_example.rb in simplecheck-2.0
- old
+ new
@@ -1,12 +1,12 @@
require 'simplecheck'
include Simplecheck
# Block passed implicitly to check
-check( 2, 4 ){ |x| x.even? }
+check(2, 4) { |x| x.even? }
# Block passed explicity to check
-is_even = lambda{ |x| x.even? }
-check( 2, 4, &is_even )
+is_even = ->(x) { x.even? }
+check(2, 4, &is_even)
-puts "All passed"
+puts 'All passed'