1example by David Corbett begins here. 2 3"Implements testable examples." 4 5An example is a kind of thing. An example can be tested. An example is seldom tested. 6 7example ends here. 8 9---- 10[The] documentation [starts here.] 11---- 12 13This extension adds examples, which may be tested. 14 15Chapter: Usage 16 17To add an example to the story, we write: 18 19 The foobar is an example. 20 21To interact with it in Inform 6, we write something like: 22 23 To say (E - example): (- 24 print (object) {E}; 25 -). 26 [The IDE's documentation viewer does not display the closing -). I don't know how to fix that.] 27 28Section: Testing 29 30We can make an example be tested using: 31 32 now the foobar is tested; 33 34Example: * Exempli Gratia - A simple example. 35 36 *: "Exempli Gratia" 37 38 Include example by David Corbett. 39 40 The Kitchen is a room. The egg is an example, here. 41 42 Before dropping the egg: 43 now the egg is tested. 44 45 Test me with "get egg / drop egg". 46