expect

Test blocks only: checks a value. With a number: equal to `expected` within `tolerance` (na equals only na). With a bool: true. With a string: equal. A failed check is reported with its line and both values; the test goes on.

expect(condition: bool, message: string = na)
expect(actual: string, expected: string)
expect(actual: float, expected: float, tolerance: float = 0)

Parameters

Example

expect(output("RSI"), 70, 0.5)