Files
klayout/testdata/vendor/ruby/test/unit/assertion-failed-error.rb
T
Matthias Koefferlein 585d0941bb RBA Unit test enhancements
- Include a copy of the unit test framework so we're no longer
  depending on incompatible versions for Ruby 1 and 2.
- Avoid duplication of path entries in unit tests
2017-07-23 23:03:21 +02:00

26 lines
748 B
Ruby

#--
#
# Author:: Nathaniel Talbott.
# Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott. All rights reserved.
# License:: Ruby license.
module Test
module Unit
# Thrown by Test::Unit::Assertions when an assertion fails.
class AssertionFailedError < StandardError
attr_accessor :expected, :actual, :user_message
attr_accessor :inspected_expected, :inspected_actual
def initialize(message=nil, options=nil)
options ||= {}
@expected = options[:expected]
@actual = options[:actual]
@inspected_expected = options[:inspected_expected]
@inspected_actual = options[:inspected_actual]
@user_message = options[:user_message]
super(message)
end
end
end
end