Class: Yast::AssertClass Deprecated
- Inherits:
-
Module
- Object
- Module
- Yast::AssertClass
- Defined in:
- library/general/src/modules/Assert.rb
Overview
Deprecated.
use rspec tests instead
Provides assertions for old yast testsuite
Instance Method Summary collapse
-
#Equal(expected, actual) ⇒ Object
Whether test succeeds.
-
#EqualMsg(expected, actual, fail_message) ⇒ Object
Whether test succeeds.
Instance Method Details
#Equal(expected, actual) ⇒ Object
Returns whether test succeeds.
44 45 46 47 48 49 50 51 52 53 |
# File 'library/general/src/modules/Assert.rb', line 44 def Equal(expected, actual) expected = deep_copy(expected) actual = deep_copy(actual) = Builtins.sformat( "assertion failure, expected '%1', got '%2'", expected, actual ) EqualMsg(expected, actual, ) end |
#EqualMsg(expected, actual, fail_message) ⇒ Object
Returns whether test succeeds.
32 33 34 35 36 37 38 39 |
# File 'library/general/src/modules/Assert.rb', line 32 def EqualMsg(expected, actual, ) expected = deep_copy(expected) actual = deep_copy(actual) return true if expected == actual Builtins.y2error("%1", ) false end |