Exception: Opal::Test::Unit::AssertFailed

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/opal/test/unit/assertions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expected, actual) ⇒ AssertFailed

Returns a new instance of AssertFailed.



5
6
7
8
# File 'lib/opal/test/unit/assertions.rb', line 5

def initialize(expected, actual)
  @expected = expected
  @actual = actual
end

Instance Attribute Details

#actualObject (readonly)

Returns the value of attribute actual.



3
4
5
# File 'lib/opal/test/unit/assertions.rb', line 3

def actual
  @actual
end

#expectedObject (readonly)

Returns the value of attribute expected.



3
4
5
# File 'lib/opal/test/unit/assertions.rb', line 3

def expected
  @expected
end