Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
arpeggio-gm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
backend
arpeggio-gm
Commits
894e8d72
Commit
894e8d72
authored
Aug 04, 2014
by
Igor Dejanovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small addition to parse tree navigation unit test.
parent
d5c9fa47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test_ptnode_navigation_expressions.py
tests/unit/test_ptnode_navigation_expressions.py
+4
-0
No files found.
tests/unit/test_ptnode_navigation_expressions.py
View file @
894e8d72
...
@@ -55,6 +55,10 @@ def test_lookup_single():
...
@@ -55,6 +55,10 @@ def test_lookup_single():
assert
result
.
bar
.
bum
[
0
]
.
rule
==
'bum'
assert
result
.
bar
.
bum
[
0
]
.
rule
==
'bum'
assert
result
.
bar
.
bum
[
1
]
.
position
==
18
assert
result
.
bar
.
bum
[
1
]
.
position
==
18
# Access to terminal
assert
result
.
bar
.
bum
[
-
1
][
0
]
.
value
==
'bum'
assert
result
.
bar2
.
bla
[
0
]
.
value
==
'bla'
# The same for all bla from all bar2
# The same for all bla from all bar2
assert
len
(
result
.
bar2
.
bla
)
==
1
assert
len
(
result
.
bar2
.
bla
)
==
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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