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
2
Merge Requests
2
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
郭家华
arpeggio-gm
Commits
378fbe44
Commit
378fbe44
authored
Aug 04, 2014
by
Igor Dejanovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrated one regression test to pytest
parent
71673a7e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
direct_rule_call.py
tests/unit/regressions/direct_rule_call.py
+2
-12
No files found.
tests/unit/regressions/direct_rule_call.py
View file @
378fbe44
'''
Created on Jul 6, 2014
@author: igor
'''
import
unittest
from
arpeggio
import
SemanticAction
,
ParserPython
from
arpeggio
import
SemanticAction
,
ParserPython
def
test_direct_rule_call
():
class
Test
(
unittest
.
TestCase
):
def
test_direct_rule_call
(
self
):
'''
'''
Test regression where in direct rule call semantic action is
Test regression where in direct rule call semantic action is
erroneously attached to both caller and callee.
erroneously attached to both caller and callee.
...
@@ -35,5 +26,4 @@ class Test(unittest.TestCase):
...
@@ -35,5 +26,4 @@ class Test(unittest.TestCase):
parse_tree
=
parser
.
parse
(
"aa"
)
parse_tree
=
parser
.
parse
(
"aa"
)
parser
.
getASG
()
parser
.
getASG
()
self
.
assertEqual
(
call_count
[
0
],
1
,
assert
call_count
[
0
]
==
1
,
"Semantic action should be called once!"
"Semantic action should be called once!"
)
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