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>


161
162
163
# File 'lib/rubycheck.rb', line 161

def initialize(test_case)
  @test_case = test_case
end

Instance Attribute Details

#test_caseObject

Input values that caused a test property to fail



150
151
152
# File 'lib/rubycheck.rb', line 150

def test_case
  @test_case
end