Expectation
Known Methods
Procedure Methods
| Name | Description |
|---|---|
| Expectation::toBeA | Expectation test that makes sure an expectation value matches the type or array of types specified. |
| Expectation::toBeAnArrayOf | Verifies that the expectation value is an array whose type matches the type specified. |
| Expectation::toBeArray | Verifies that the expectation value is an array. |
| Expectation::toBeAValidENVITask | Verifies that the expectation value is a valid ENVI task by using the idl ENVITask() function. |
| Expectation::toBeAValidIDLTask | Verifies that the expectation value is a valid IDL task by using the idl IDLTask() function. |
| Expectation::toBeAValidObject | Verifies that the expectation value is an object by using the idl obj_valid() function. |
| Expectation::toBeBetween | Verifies that the expectation value is between a low and high number. |
| Expectation::toBeCloseTo | Verifies that the expectation value is close to a number, which is useful for floating point math. |
| Expectation::toBeDirectory | Verifies that the expectation value (a path, or array of paths) is an existing directory. |
| Expectation::toBeEmpty | Verifies that the expectation value is empty. |
| Expectation::toBeFalse | Verifies that the expectation value is falsy by using an if statement like this: |
| Expectation::toBeFalsy | Verifies that the expectation value is falsy, which is the opposite of idl toBeTruthy. |
| Expectation::toBeFile | Verifies that the expectation value (a path, or array of paths) is an existing regular file. |
| Expectation::toBeFinite | Verifies that the expectation value is finite (not NaN and not infinity). |
| Expectation::toBeGreaterThan | Verifies that the expectation value is greater than a number. |
| Expectation::toBeGreaterThanOrEqual | Verifies that the expectation value is greater than or equal to a number. |
| Expectation::toBeInfinite | Verifies that the expectation value is positive or negative infinity. |
| Expectation::toBeInstanceOf | Verifies that the expectation value is an object that is an instance of a class, including through inheritance (uses idl obj_isa()). |
| Expectation::toBeLessThan | Verifies that the expectation value is less than a number. |
| Expectation::toBeLessThanOrEqual | Verifies that the expectation value is less than or equal to a number. |
| Expectation::toBeNaN | Verifies that the expectation value is NaN. |
| Expectation::toBeNull | Verifies that the value of an expectation is null or undefined using IDL's idl isa() function with the null keyword set. |
| Expectation::toBeSameObject | Verifies that the expectation value is the exact same object reference as the compare value. |
| Expectation::toBeScalar | Verifies that the expectation value is a scalar (a single value). |
| Expectation::toBeSorted | Verifies that the expectation value (an array or list of real numbers or strings) is sorted. |
| Expectation::toBeTrue | Verifies that the expectation value is truthy by using an if statement like this: |
| Expectation::toBeTruthy | Verifies that the expectation value is truthy. |
| Expectation::toBeTypename | Verifies that the typename on an expectation value matches the specific name. |
| Expectation::toContain | Verifies that an expectation value contains the specified variable value. |
| Expectation::toContainAll | Verifies that the expectation value (an array, list, or the values of a hash, orderedhash, or dictionary) contains every one of the values specified. |
| Expectation::toContainAny | Verifies that the expectation value (an array, list, or the values of a hash, orderedhash, or dictionary) contains at least one of the values specified. |
| Expectation::toContainEqual | Verifies that the expectation value (an array, list, or the values of a hash, orderedhash, or dictionary) contains an item equal to the compare value. |
| Expectation::toContainString | Verifies that an expectation value contains a sub string. |
| Expectation::toEndWith | Verifies that the expectation value ends with a suffix. |
| Expectation::toEqual | Verifies that an expectation value matches a compare value. |
| Expectation::toExecuteENVITask | Verifies an expectation value to run the ENVI::Execute method. |
| Expectation::toExecuteIDLTask | Verifies an expectation value to run the IDLTask::Execute method. |
| Expectation::toExist | Verifies that the expectation value (a path, or array of paths) exists, whether it is a file or a directory. |
| Expectation::toFindInArray | Similar to idl expectation.toContain, this method verifies that an array has the value compare as one of the elements. |
| Expectation::toHaveDimensions | Verifies that the expectation value has exact dimensions (as returned by idl size(/dimensions)). |
| Expectation::toHaveKey | Verifies that the expectation value (a hash, orderedhash, or dictionary) has a key. |
| Expectation::toHaveKeyValue | Verifies that the expectation value (a hash, orderedhash, or dictionary) has a key whose value equals another value. |
| Expectation::toHaveLength | Verifies that the expectation value has a number of elements. |
| Expectation::toHaveMethod | Verifies that the expectation value (an object) has a method. |
| Expectation::toHaveSameDimensions | Verifies that the expectation value has the same dimensions as another value. |
| Expectation::toHaveTag | Verifies that the expectation value (a structure) has a tag. |
| Expectation::toHaveUniqueValues | Verifies that the expectation value (an array or list) has no duplicate items. |
| Expectation::toMatchRegex | Verifies that an expectation value matches a regular expression. |
| Expectation::toPrint | Verifies that running a routine or object method prints some text to the console. |
| Expectation::toRunFunction | Verifies that the expectation value is a function and can be called with the specified arguments/keywords. |
| Expectation::toRunFunctionMethod | Verifies that the expectation value is an object and can run the specified function method with the provided arguments/keywords. |
| Expectation::toRunProcedure | Verifies that the expectation value is a procedure and can be called with the specified arguments/keywords. |
| Expectation::toRunProcedureMethod | Verifies that the expectation value is an object and can run the specified procedure method with the provided arguments/keywords. |
| Expectation::toRunWithin | Verifies that a routine or object method runs without error and finishes within a number of seconds. |
| Expectation::toStartWith | Verifies that the expectation value starts with a prefix. |
| Expectation::toStrictEqual | Verifies that an expectation value is equal to a compare value and also has the same type and dimensions. |
| Expectation::toThrow | Verifies that running a routine or object method raises an error. |
| Expectation::toThrowMatching | Verifies that running a routine or object method raises an error whose message matches a regular expression. |
| Expectation::toThrowMessage | Verifies that running a routine or object method raises an error whose message contains some text (case sensitive). |
Known Properties
No documented properties