Test data for user-defined routines

To enter test data for a routine, select the routine and choose Edit > Gather Test Data.

The test data for user-defined routines includes the following items:
Table 1. Test data for user-defined routines
Test data item What to test for
The input parameters for the test case Enter the input parameters in the same format you type them in an SQL statement. Enclose text parameters in quotation marks.
The result expected from the function, if the input parameters are valid If you enter invalid input parameters, leave this field blank. If the user-defined routine is a procedure, the result field is not available because procedures do not return values.
An error code, if the input parameters are invalid. Leave this field blank if the input parameters are expected to be valid.
For example, the Circle DataBlade® module defines a Contains() function that takes a Circle value and a Pnt value and returns a Boolean result. To test the Contains() function with a Circle value of '(12,12,2)' and a Pnt value of '(12,12)', enter the following input parameters:
'(12,12,2)','(12,12)'

Calling Contains() with these values return a true result, which you can enter as t. Because the input parameters are valid, you leave the Error code field blank.