Missing file clos-tests.lisp
The user manual says "The file clos-tests.lisp, included with Corman Lisp in the examples folder, contains most of the code samples from the book, and is useful for seeing how CLOS works. " Howerver directory listing of lisp files in examples with current install is Directory of c:\Program Files (x86)\Corman Lisp\examples
23/09/2016 12:49 PM 4,466 baby.lisp 23/09/2016 12:49 PM 684 callbacks.lisp 23/09/2016 12:49 PM 5,266 com-interfaces.lisp 23/09/2016 12:49 PM 4,737 console-stuff.lisp 23/09/2016 12:49 PM 6,630 devcaps1.lisp 23/09/2016 12:49 PM 2,216 dllsample.lisp 23/09/2016 12:49 PM 2,594 double-float-optimizations.lisp 23/09/2016 12:49 PM 3,683 hellowin.lisp 23/09/2016 12:49 PM 2,118 ifstar.lisp 23/09/2016 12:49 PM 4,714 insults.lisp 23/09/2016 12:49 PM 2,043 internet.lisp 23/09/2016 12:49 PM 17,743 JavaClass.lisp 23/09/2016 12:49 PM 10,519 life.lisp 23/09/2016 12:49 PM 2,450 lisp-heap-stats.lisp 23/09/2016 12:49 PM 761 math-fun.lisp 23/09/2016 12:49 PM 7,649 memoize.lisp 22/02/2017 12:38 AM 49,909 minesweepers.lisp 23/09/2016 12:49 PM 3,203 normal-random.lisp 23/09/2016 12:49 PM 1,791 optimize-examples.lisp 23/09/2016 12:49 PM 913 pi.lisp 23/09/2016 12:49 PM 4,519 play-mp3s.lisp 23/09/2016 12:49 PM 4,513 poppad1.lisp 23/09/2016 12:49 PM 3,915 primes.lisp 23/09/2016 12:49 PM 1,040 quicksort.lisp 23/09/2016 12:49 PM 3,641 registry.lisp 23/09/2016 12:49 PM 1,128 shortcuts.lisp 23/09/2016 12:49 PM 12,041 sysmets3.lisp 23/09/2016 12:49 PM 3,814 touch.lisp 23/09/2016 12:49 PM 6,111 touchx.lisp 23/09/2016 12:49 PM 5,749 utility-functions.lisp 30 File(s) 180,560 bytes Could the file be made available? Cheers Nigel
Found closette-tests.lisp in the tests directory rather than Clos-tests.lisp .
I saw that the earlier PowerLisp by Roger Corman @rgcorman also mentioned a Clos test file in its manual so I download PowerLisp_2_02_sea.hqx from https://download.cnet.com/PowerLisp/3000-2247_4-2061.html . Inside that I found the file closette-tests.lisp in the examples and test directories.
The PowerLisp manual mentions clos-tests.lisp, as the Corman Lisp manual does, rather than closette-tests.lisp. So probably just an update of the manual to refer to closette-tests.lisp is needed.
I've extracted the code testing chapter 1 stuff into a separate file. I've made it emit text as a test rather than trying drawing as output (the original is just silent if no errors occur). This makes it easier tom play with after the lisp file is run in Corman Lisp using the menu <Lisp/Execute File...> option.
I attach the file here with extra .txt extension. Any comments welcome.
I'll keep working through closette-tests.lisp to make some playable learn-by-fiddling files. clos-tests-ch1.lisp.txt
So instead of "The file clos-tests.lisp, included with Corman Lisp in the examples folder, contains most of the code samples from the book, and is useful for seeing how CLOS works. " it should probably read "The file closette-tests.lisp, included with Corman Lisp in the examples folder, contains most of the code samples from the book, and is useful for seeing how CLOS works. " and closette-tests.lisp should be copied from the tests folder (that doesn't appear in the installed directories) to also be in the installed examples folder.
What do you think @arbv ?