Assertions - dylanparry/ceylon GitHub Wiki

Using Ceylon with TypeScript will provide you with full Intellisense within your chosen IDE. This means that you'll only be shown the assertions that are suitable for the data type that you are testing. For example, if the item you are testing is a boolean, you won't see assertions that relate to numbers.

Table of Contents

  1. Basic Assertions
  2. Assertions by Type
  3. Custom Assertions

Basic Assertions

Some assertions are available on all types and can be used to test any object.

Assertions by Type

The following additional types of assertion are available:

Custom Assertions

It is also possible to write custom assertions that allow you to write tests that aren't covered by the assertions on the pages listed above.