Module: QueenCheck
- Defined in:
- lib/queencheck.rb,
lib/queencheck/gen.rb,
lib/queencheck/core.rb,
lib/queencheck/result.rb,
lib/queencheck/arbitrary.rb,
lib/queencheck/condition.rb,
lib/queencheck/exception.rb,
lib/queencheck/arbitraries/string.rb
Overview
Defined Under Namespace
Classes: ASCIIChar, Alphabet, Arbitrary, CanNotRetryMore, Condition, Gen, Result, ResultReport, Testable
Constant Summary collapse
- VERSION =
QueenCheck Version
'1.0.0'
Class Method Summary collapse
-
.Arbitrary(name, gen = nil, &block) ⇒ Object
set or get arbitrary.
Class Method Details
.Arbitrary(name) ⇒ QueenCheck::Arbitrary .Arbitrary(name, gen) ⇒ Symbol or String .Arbitrary(name, &block) ⇒ Symbol or String
set or get arbitrary
17 18 19 20 21 |
# File 'lib/queencheck/arbitrary.rb', line 17 def Arbitrary(name, gen = nil, &block) generator = gen || block generator.nil? ? Arbitrary.from_dic(name) : Arbitrary.new(name, generator) end |