Emojicode Documentation 1.0 beta 2

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.

Hint

Prefer other assertion methods like ๐Ÿ”กโ—๏ธ if possible as they provide more information in the case of failure.

โŽโ—๏ธ

๐Ÿ” โ—๏ธ โŽ  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.

โœ…โ—๏ธ

๐Ÿ” โ—๏ธ โœ…  description ๐Ÿ”ก 

Adds a passed assertion with the provided description.

๐Ÿ‘”โ—๏ธ

โ—๏ธ ๐Ÿ‘” โžก๏ธ ๐Ÿ”ข

Runs tests.

๐Ÿโ—๏ธ

๐Ÿ” โ—๏ธ ๐Ÿ