File: spec.rb

package info (click to toggle)
ruby-rantly 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 196 kB
  • sloc: ruby: 832; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 175 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
require 'rantly'
module Rantly::Check
  def check(n = 100, &block)
    Rantly.gen.each(n, &block)
  end

  def sample(n = 100, &block)
    Rantly.gen.map(n, &block)
  end
end