Exception: Opal::Test::Unit::AssertFailed
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Opal::Test::Unit::AssertFailed
- Defined in:
- lib/opal/test/unit/assertions.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
Instance Method Summary collapse
-
#initialize(expected, actual) ⇒ AssertFailed
constructor
A new instance of AssertFailed.
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
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
3 4 5 |
# File 'lib/opal/test/unit/assertions.rb', line 3 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
3 4 5 |
# File 'lib/opal/test/unit/assertions.rb', line 3 def expected @expected end |