Testing with code from documentation