Emojicode Documentation 1.0 beta 2
ads via Carbon Copy‑paste ready CSS & JavaScript patterns with accessibility baked in. ads via Carbon

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.

πŸβ—οΈ

πŸ” ❗️ 🏁