Wikibooks:Dialog/do/test/sequence/length

This test uses an action-sequence to repeatedly increment  until the maximum action-sequence length is reached.