Apart from their direct purpose as a help to users, examples may serve as integrity tests. Eventually, one can convert them into a test suite.