diff options
author | Godefroid Chapelle <gotcha@bubblenet.be> | 2007-06-06 10:20:26 +0000 |
---|---|---|
committer | Godefroid Chapelle <gotcha@bubblenet.be> | 2007-06-06 10:20:26 +0000 |
commit | 59073c259f3a8b95f47494069bad8a570890fa0e (patch) | |
tree | 8c00ad9ff6961ad8156e6ca37b34a3ff0fa7d54b | |
parent | fe259a303edb3f86f82d784d333160a7093b547a (diff) | |
download | zope-tal-59073c259f3a8b95f47494069bad8a570890fa0e.tar.gz |
basic tests
-rw-r--r-- | src/zope/tal/pypy/test/check.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/zope/tal/pypy/test/check.py b/src/zope/tal/pypy/test/check.py new file mode 100644 index 0000000..daca4c3 --- /dev/null +++ b/src/zope/tal/pypy/test/check.py @@ -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" |