Prefer other assertion methods like π‘βοΈ if possible as they provide more information in the case of failure.
Package
Initializers
Methods
Class π§ͺ
This class is a test helper class for unit testing.
To create a test suite, subclass this class and override π, for instance:
π π¦ π§ͺ π
βοΈβοΈ π π
π’π 20 20 π€20 equal 20π€βοΈ
π
πThan instantiate your class and call π. The return of π is an exit code that can be returned from the π function:
π β‘οΈ π’ π
β©οΈ πππ¦βοΈβοΈ
πInitializers
π
π
Methods
ββοΈ
π βοΈ β value π description π‘
Asserts that value is π. description should describe what this test asserts exactly.
ββοΈ
π βοΈ β value π description π‘
Asserts that value is π. description should describe what this test asserts exactly.
π‘βοΈ
π βοΈ π‘ value π‘ expectation π‘ description π‘
Asserts that value equals expectation. description should describe what this test asserts exactly.
π’βοΈ
π βοΈ π’ value π’ expectation π’ description π‘
Asserts that value equals expectation. description should describe what this test asserts exactly.
π§βοΈ
π βοΈ π§ value π§ expectation π§ description π‘
Asserts that value equals expectation. description should describe what this test asserts exactly.
π―βοΈ
π βοΈ π― value π― expectation π― description π‘
Asserts that value equals expectation. description should describe what this test asserts exactly.
πβοΈ
π βοΈ π description π‘
Adds an assertion failure with the provided description.
πβοΈ
π βοΈ π