Skip to content

Commit

Permalink
moved tests to main tests #27
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Mar 26, 2024
1 parent 4b370bb commit 1161acb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 28 deletions.
24 changes: 24 additions & 0 deletions folia/tests/maintest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,30 @@ def test050_statement(self):
self.assertEqual( sentiment.annotation(folia.Source).text(), "Hij")
self.assertEqual( sentiment.annotation(folia.Headspan).text(), "hij zou winnen")

def test051_parse_comments(self):
folia.Document(
string="""<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="folia.xsl"?>
<!-- Foo -->
<FoLiA xmlns="http://ilk.uvt.nl/folia" version="2.0" xml:id="example">
<!-- Foo -->
<text>
<!-- Foo -->
<p>
<!-- Foo -->
<t><!-- Foo -->Dit is een test.</t>
<!-- Foo -->
</p>
<!-- Foo -->
</text>
<!-- Foo -->
</FoLiA>
<!-- Foo -->
""",
autodeclare=True,
loadsetdefinitions=False,
)

def test099_write(self):
"""Sanity Check - Writing to file"""
self.doc.save(os.path.join(TMPDIR,'foliasavetest.xml'))
Expand Down
28 changes: 0 additions & 28 deletions folia/tests/test_comment.py

This file was deleted.

0 comments on commit 1161acb

Please sign in to comment.