Skip to content

Commit

Permalink
add test case for comments between parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
john-tornblom committed Jan 10, 2018
1 parent 770e322 commit ff08702
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_invoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,21 @@ def test_invoke_with_parameter_and_comments(self, rc):
'''
self.assertEqual(2, rc)

@evaluate_docstring
def test_invoke_with_comments_between_parameters(self, rc):
'''
.function f .// integer
.param integer x
.// some comment
.param integer y
.// begin body
.exit x + y
.end function
.invoke f(1, 2)
.exit 0
'''
self.assertEqual(3, rc)

@evaluate_docstring
def test_parameter_order(self, rc):
'''
Expand Down

0 comments on commit ff08702

Please sign in to comment.