[pypy-svn] r13173 - pypy/dist/pypy/rpython/test

ericvrp at codespeak.net ericvrp at codespeak.net
Wed Jun 8 11:17:39 CEST 2005


Author: ericvrp
Date: Wed Jun  8 11:17:38 2005
New Revision: 13173

Modified:
   pypy/dist/pypy/rpython/test/snippet.py
Log:
fixed test return values


Modified: pypy/dist/pypy/rpython/test/snippet.py
==============================================================================
--- pypy/dist/pypy/rpython/test/snippet.py	(original)
+++ pypy/dist/pypy/rpython/test/snippet.py	Wed Jun  8 11:17:38 2005
@@ -1,5 +1,13 @@
 # generic
 
+def simple1():
+    return 1
+
+
+def simple2():
+    return False
+
+
 def not1(n):
     return not n
 
@@ -27,6 +35,7 @@
     n += bool(6)
     n += bool(7.8)
     n += bool(n)
+    return n
 
 
 #ints
@@ -89,6 +98,7 @@
     n += int(8)
     n += int(5.7)
     n += int(n)
+    return n
 
 
 # floats
@@ -128,6 +138,7 @@
     n += float(6)
     n += float(7.8)
     n += float(n)
+    return n
 
 
 def main(args=[]):
@@ -137,9 +148,7 @@
     b1 = bool1(b)
     i1 = int1(i)
     f1 = float1(f)
-    #print 'bool1(%d)'  % b, b1
-    #print 'int1(%d)'   % i, i1
-    #print 'float1(%s)' % f, f1
+    return 0
 
 
 if __name__ == '__main__':



More information about the Pypy-commit mailing list