On Jul 2, 8:24 am, "Edward K. Ream" <[email protected]> wrote:

> Yesterday that I realized that round tripping tests would be easy to do.

The new-sentinels branch now contains an important testing script that
uses the new compareClass class, presently defined in leoAtFile.py.
This is packaged as an @test node for easy running, but it's not
really a proper unit test.

But no matter.  This is an important new kind of test--*much* more
direct test than round-tripping, or even unit tests.  Indeed, rather
than testing the *effects* of the new sentinels, it tests the
correspondence of the new sentinels with the old.  It's akin to, but
more effective than, double-entry bookkeeping.

Not only is the new script the most "efficient" test possible, it is
also quite easy to do.  Take a look at the code if you like.

BTW, I haven't upped the top-level @test node, because I don't want to
alter leoPyRef.leo during the transition.  Here it is:

files = ('leoAtFile','leoGlobals', 'leoFileCommands',) # could use
glob.glob

cc =c.atFileCommands.compareClass(c)
for fn in files:
    cc.compare(fn)

EKR

-- 
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.

Reply via email to