Permalink
Browse files

Changed sample_last structure in docstrings of tests.

  • Loading branch information...
Pranesh Srinivasan
Pranesh Srinivasan committed May 16, 2011
1 parent 68c37fe commit 90ef6332b6ff3ba5c0b9b1ec28c752f03290eb2f
Showing with 20 additions and 32 deletions.
  1. +10 −16 redhawk/test/test_common__selector.py
  2. +10 −16 redhawk/test/test_common_selector.py
@@ -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():
@@ -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():

0 comments on commit 90ef633

Please sign in to comment.