Test scripts

Top  Previous  Next

Scripts > Test scripts

 

Test scripts are constructed similar to the scripts of productions or token. But test scripts cannot have a return type and instead of an optional parameter list here exists an optional input text. The syntax of a test scripts is identical with the syntax of a production.

 

 

The mask for the definition of a test script has following fields:

 

       Name:                        unique name

       Comment:                arbitrary comment

       Input:                        input text

       Text:                        script

       Expected output:        Expected output        

       Test output:                Real output of the executed test

 

 

Name and text are needed. If one of these fields is empty, the script will not be accepted and you can't write a comment.

 



This page belongs to the TextTransformer Documentation

Home  Content  German