On Sat, Mar 15, 2008 at 9:32 AM, Edward K. Ream <[EMAIL PROTECTED]> wrote: [...] > To run all unit tests, select the top-level node called "All unit tests" and > hit alt-4. To run individual tests, select subnodes of "All unit tests" and > hit alt-4. The place to start would be the node: > > All unit tests-->Organized by file-->leoNodes--> Position tests
I was playing around with this and I discovered that if I open unitTest.leo from the File->Open menu pick of another leo outline and then I run a unit test, then all the nodes from unitTest.leo appear in the original document. If I execute a save on the original document (now with the unitTest.leo nodes), then the leo file gets overwritten with the contents unitTest.leo. I also unhappily discovered that any file named somedoc.leo.bak will get deleted whenever you save a file named somedoc.leo. Once I saw my nodes were overwritten unitTest.leo, I copied somedoc.leo to somedoc.leo.bak because I wanted to do a save to see what would happen. The somedoc.leo file ended up with the contents of unitTest.leo as I suspected. To my surprise, I also lost somedoc.leo.bak! The file disappeared! Fortunately, I had another backup copy to revert to. If leo is making use of a .bak file during saving, then should it give a warning if that file already exists? To duplicate: 1. Open a leo file that you don't care about losing. 2. From the file->open menu open leo/test/unitTest.leo 3. Select a unit test and run it with Alt-4 (I chose the Position tests described above) 4. Switch back to the original leo document and you should see the contents of unitTest.leo instead of the original document contents. Brian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
