Related to "Tests"
testing.assertEmpty() function
testing.assertEmpty()
tests if an input stream is empty. If not empty, the function returns an error.
testing.assertEquals() function
testing.assertEquals()
tests whether two streams of tables are identical.
testing.assertEqualValues() function
testing.assertEqualValues()
tests whether two values are equal.
testing.diff() function
testing.diff()
produces a diff between two streams.
testing.shouldError() function
testing.shouldError()
calls a function that catches any error and checks that the error matches the expected value.
types.isNumeric() function
types.isNumeric()
tests if a value is a numeric type (int, uint, or float).
types.isType() function
types.isType()
tests if a value is a specified type.
dynamic.isType() function
dynamic.isType()
tests if a dynamic type holds a value of a specified type.
testing.assertMatches() function
testing.assertMatches()
tests whether a string matches a given regex.
testing.shouldErrorWithCode() function
testing.shouldErrorWithCode()
calls a function that catches any error and checks that the error matches the expected value.