Skip to content

Commit cc02f59

Browse files
committed
Fix logic
Signed-off-by: Arthur Chan <[email protected]>
1 parent af76309 commit cc02f59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tree-sitter-frontend/test-tree-sitter-frontend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
'language': 'c++',
3636
'project': {
3737
'cpp/test-project-1': {
38-
'count': 5,
38+
'count': 6,
3939
'reaches': ' isPositive'
4040
}
4141
}
@@ -54,7 +54,7 @@ def test_tree_sitter_frontend():
5454
for calltree in calltrees:
5555
count = sample_map['count']
5656
reaches = sample_map['reaches']
57-
lines = calltree.split('\n')[1:]
57+
lines = calltree.split('\n')
5858

5959
if len(lines) == count and reaches in calltree:
6060
found = True

0 commit comments

Comments
 (0)