API Reference
Classes
Expect
The Util class provides methods for making assertions in tests, such as comparing two strings for equality with rich error messages.
Static Functions
Name | Description |
---|---|
equal | Compares two values for equality. |
nil | Checks if a value is nil. |
notEqual | Compares two values for inequality. |
notNil | Checks if a value is not nil. |
equal
bring expect;
inflight expect.equal(actual: any, expected: any);
Compares two values for equality.
actual
Required
- Type: any
The value to test.
expected
Required
- Type: any
The expected value.
nil
bring expect;
inflight expect.nil(actual: any);
Checks if a value is nil.
actual
Required
- Type: any
The value to test.
notEqual
bring expect;
inflight expect.notEqual(actual: any, expected: any);
Compares two values for inequality.
actual
Required
- Type: any
The value to test.
expected
Required
- Type: any
The expected value.
notNil
bring expect;
inflight expect.notNil(actual: any);
Checks if a value is not nil.
actual
Required
- Type: any
The value to test.