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.
๐โ๏ธ
๐ โ๏ธ ๐