[Checkins] SVN: zope.tal/branches/pypyzpt/src/zope/tal/pypy/test/check.py basic tests

Godefroid Chapelle gotcha at bubblenet.be
Wed Jun 6 06:20:27 EDT 2007


Log message for revision 76394:
  basic tests

Changed:
  A   zope.tal/branches/pypyzpt/src/zope/tal/pypy/test/check.py

-=-
Added: zope.tal/branches/pypyzpt/src/zope/tal/pypy/test/check.py
===================================================================
--- zope.tal/branches/pypyzpt/src/zope/tal/pypy/test/check.py	                        (rev 0)
+++ zope.tal/branches/pypyzpt/src/zope/tal/pypy/test/check.py	2007-06-06 10:20:26 UTC (rev 76394)
@@ -0,0 +1,11 @@
+import test
+
+ip = test.Interpreter(None, 20)
+assert ip.power2() == 400
+assert ip.getInstance() is None
+
+ip = test.Interpreter([1, 2], 10)
+assert ip.power2() == 100
+assert ip.getInstance() == [1, 2, 3]
+
+print "tests passed"



More information about the Checkins mailing list