Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed sample_last structure in docstrings of tests.

  • Loading branch information...
commit 90ef6332b6ff3ba5c0b9b1ec28c752f03290eb2f 1 parent 68c37fe
Pranesh Srinivasan authored
View
26 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():
View
26 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():
Please sign in to comment.
Something went wrong with that request. Please try again.