class Test::Unit::TC_Error

Constants

TF_Exception

Public Instance Methods

test_display() click to toggle source
# File test-unit-3.3.4/test/test-error.rb, line 11
      def test_display
        ex = TF_Exception.new("message1\nmessage2", ['line1', 'line2'])
        e = Error.new("name", ex)
        assert_equal("name: #{TF_Exception.name}: message1", e.short_display)
        assert_equal(<<EOM.strip, e.long_display)
Error:
name:
Struct::TF_Exception: message1
message2
    line1
    line2
EOM
      end