Class: NilClass

Inherits:
Object
  • Object
show all
Extended by:
RushCheck::Arbitrary
Includes:
RushCheck::Coarbitrary, RushCheck::Testable
Defined in:
lib/rushcheck/bool.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from RushCheck::Arbitrary

arbitrary

Methods included from RushCheck::Testable

#check, #classify, #imply, #label, #run, #run_tests, #silent_check, #test, #testcase, #trivial

Class Method Details

.arbitraryObject



80
81
82
# File 'lib/rushcheck/bool.rb', line 80

def self.arbitrary
  Gen.unit(nil)
end

Instance Method Details

#coarbitrary(g) ⇒ Object



84
85
86
# File 'lib/rushcheck/bool.rb', line 84

def coarbitrary(g)
  g.variant(0)
end

#propertyObject



88
89
90
# File 'lib/rushcheck/bool.rb', line 88

def property
  RushCheck::Result.nothing
end