Strictly speaking, expect is a tool, rather than a language. However it is easiest to regard it as a language which extends TCL. Before writing code using expect you should be fully familiar with TCL [1].
Expect scripts spawn test programs, to which they supply input and check that the response is as expected. A full description of how to write tests is given in Chapter 3 below.