On Jun 14, 11:08 am, "Edward K. Ream" <[email protected]> wrote:
> On Jun 12, 1:31 pm, thyrsus <[email protected]> wrote:
>
> > I've just pushed some code concerning @root to the trunk.
>
> 6 unit tests fail for me at rev 3116.  Also, the checkin message is
> simple (1), which isn't very helpful.
>
> Edward

I'm only getting 3 failed tests; are you using Alt-4 or Alt-5?  I'm
doing

python launchLeo.py leo/test/unitTest.leo

....then hitting Alt-4

@root /tmp/'root-test'
.('\n', '--------------------')
expected files:
['root-test-one'] <type 'unicode'>
['root-test-two'] <type 'unicode'>
--------------------
result files:
['root-test-one'] <type 'unicode'>
--------------------
F('\n', '--------------------')
result for 'root-test'...
(' 38', "u'<!-- A less simple test of @root. -->\\n'")
('  1', "u'\\n'")
(' 16', "u'// << secref >>\\n'")
('  4', "u'abc\\n'")
('  1', "u'\\n'")
(' 32', 'u\'<script type="text/javascript">\\n\'')
(' 12', "u'@comment //\\n'")
(' 28', "u'// << javascript section >>\\n'")
('  1', "u'\\n'")
(' 38', "u'// -- end -- << javascript section >>\\n'")
(' 10', "u'</script>\\n'")
(' 18', "u'@comment <!-- -->\\n'")
(' 26', "u'// -- end -- << secref >>\\n'")
--------------------
expected for 'root-test'...
(' 38', "u'<!-- A less simple test of @root. -->\\n'")
('  1', "u'\\n'")
(' 22', "u'<!-- << secref >> -->\\n'")
('  4', "u'abc\\n'")
('  1', "u'\\n'")
(' 32', 'u\'<script type="text/javascript">\\n\'')
(' 15', "u'// @comment //\\n'")
(' 28', "u'// << javascript section >>\\n'")
('  7', "u'var i;\\n'")
(' 38', "u'// -- end -- << javascript section >>\\n'")
(' 10', "u'</script>\\n'")
(' 32', "u'<!-- -- end -- << secref >> -->\\n'")
--------------------
FMultiple parts not allowed for << secref >>
----- No file written because of errors
('\n', '--------------------')
expected files:
['root-test'] <type 'unicode'>
--------------------
result files:
--------------------
F...............
End of leoUndo tests.
.('tree.redrawCount:', 363)
.saved: unitTest.leo
all unit tests done
.
======================================================================
FAIL: @test multiple @root directives

----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sps/Bzr/leo-editor/leo/core/leoTest.py", line 185, in
runTest
    exec(script,d)
  File "<string>", line 5, in <module>
  File "/home/sps/Bzr/leo-editor/leo/core/leoTest.py", line 985, in
runRootFileTest
    assert(expectList == resultList)
AssertionError

======================================================================
FAIL: @test @root with @language html and @comment  //

----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sps/Bzr/leo-editor/leo/core/leoTest.py", line 185, in
runTest
    exec(script,d)
  File "<string>", line 5, in <module>
  File "/home/sps/Bzr/leo-editor/leo/core/leoTest.py", line 1006, in
runRootFileTest
    assert(expected[t] == result)
AssertionError

======================================================================
FAIL: @test @root-doc with subnodes

----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sps/Bzr/leo-editor/leo/core/leoTest.py", line 185, in
runTest
    exec(script,d)
  File "<string>", line 5, in <module>
  File "/home/sps/Bzr/leo-editor/leo/core/leoTest.py", line 985, in
runRootFileTest
    assert(expectList == resultList)
AssertionError

----------------------------------------------------------------------
Ran 599 tests in 63.444s

FAILED (failures=3)

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