Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
badw-it
DHParser
Commits
4bc268e0
Commit
4bc268e0
authored
Aug 09, 2018
by
di68kap
Browse files
- minimale korrekturen
parent
650c942e
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/run.py
View file @
4bc268e0
...
...
@@ -10,8 +10,8 @@ if __name__ == "__main__":
# print("Running nosetests:")
# os.system("nosetests test")
interpreters
=
[
'python '
,
'pypy3 '
,
'python37 '
]
#
interpreters = [r'C:\Users\di68kap\AppData\Local\Programs\Python\Python37-32\python.exe ']
#
interpreters = ['python ', 'pypy3 ', 'python37 ']
interpreters
=
[
r
'C:\Users\di68kap\AppData\Local\Programs\Python\Python37-32\python.exe '
]
for
interpreter
in
interpreters
:
os
.
system
(
interpreter
+
'--version'
)
...
...
test/test_transform.py
View file @
4bc268e0
...
...
@@ -226,7 +226,7 @@ class TestComplexTransformations:
<SEITENZAHL>18</SEITENZAHL>
</Stelle>"""
tree
=
parse_xml
(
xml
)
print
(
flatten_sxpr
(
tree
.
as_sxpr
()))
#
print(flatten_sxpr(tree.as_sxpr()))
collapse_if
([
tree
],
lambda
context
:
context
[
-
1
].
tag_name
!=
'HOCHGESTELLT'
,
self
.
Text
)
assert
tree
.
as_xml
(
inline_tags
=
{
'Stelle'
})
==
\
"<Stelle><Text>p.26</Text><HOCHGESTELLT>b</HOCHGESTELLT><Text>,18</Text></Stelle>"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment