Exception: RubyCheck::PropertyFailure

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rubycheck.rb

Overview

Defines an error class to capture test case input when reporting errors observed by for_all.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test_case) ⇒ PropertyFailure

Construct a PropertyFailure error, collecting test_case input data.

Example:

RubyCheck::PropertyFailure.new([9])
=> #<RubyCheck::PropertyFailure: RubyCheck::PropertyFailure>


115
116
117
# File 'lib/rubycheck.rb', line 115

def initialize(test_case)
  @test_case = test_case
end

Instance Attribute Details

#test_caseObject

Input values that caused a test property to fail



104
105
106
# File 'lib/rubycheck.rb', line 104

def test_case
  @test_case
end