Skip to content

Commit

Permalink
Changed sample_last structure in docstrings of tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranesh Srinivasan committed May 16, 2011
1 parent 68c37fe commit 90ef633
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 32 deletions.
26 changes: 10 additions & 16 deletions redhawk/test/test_common__selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,16 @@
""" The sample tree that we will test the selectors on:
(define-function Factorial
((define-variable n))
(compound
(if
(eq n
(constant 0))
(compound
(compound
(return
(constant 1))))
(compound
(compound
(return
(* n
(apply Factorial
((- n
(constant 1)))))))))))
((if
(eq n
(constant 0))
((return
(constant 1)))
((return
(* n
(apply Factorial
((- n
(constant 1))))))))))
"""

def TestEmptySelector():
Expand Down
26 changes: 10 additions & 16 deletions redhawk/test/test_common_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,16 @@
""" The sample tree that we will test the selectors on:
(define-function Factorial
((define-variable n))
(compound
(if
(eq n
(constant 0))
(compound
(compound
(return
(constant 1))))
(compound
(compound
(return
(* n
(apply Factorial
((- n
(constant 1)))))))))))
((if
(eq n
(constant 0))
((return
(constant 1)))
((return
(* n
(apply Factorial
((- n
(constant 1))))))))))
"""

def TestEmptySelector():
Expand Down

0 comments on commit 90ef633

Please sign in to comment.