[pypy-svn] r24614 - pypy/dist/pypy/objspace/test
auc at codespeak.net
auc at codespeak.net
Mon Mar 20 16:38:57 CET 2006
Author: auc
Date: Mon Mar 20 16:38:51 2006
New Revision: 24614
Modified:
pypy/dist/pypy/objspace/test/test_logicobjspace.py
Log:
is_unbound -> is_free
Modified: pypy/dist/pypy/objspace/test/test_logicobjspace.py
==============================================================================
--- pypy/dist/pypy/objspace/test/test_logicobjspace.py (original)
+++ pypy/dist/pypy/objspace/test/test_logicobjspace.py Mon Mar 20 16:38:51 2006
@@ -7,11 +7,11 @@
def test_simple(self):
X = newvar()
- assert is_unbound(X)
+ assert is_free(X)
bind(X, 1)
assert type(X) == int
- assert not is_unbound(X)
- assert not is_unbound(1)
+ assert is_bound(X)
+ assert is_bound(1)
raises(TypeError, bind, 1, 2)
def test_setitem(self):
@@ -22,10 +22,10 @@
d[7].append(x)
y = d[5], d[6], d.values(), d.items()
for x in [d[5], d[6], d[7][0]]:
- assert is_unbound(d[5])
+ assert is_free(d[5])
bind(x, 1)
for x in [d[5], d[6], d[7][0]]:
- assert not is_unbound(d[5])
+ assert is_bound(d[5])
def test_unbound_unification_simple(self):
X = newvar()
@@ -60,7 +60,7 @@
Y = newvar()
assert X == Y
assert X == 1
- assert not is_unbound(Y)
+ assert is_bound(Y)
assert Y == 1
def test_ne_of_unified_vars(self):
@@ -73,10 +73,10 @@
X = newvar()
Y = newvar()
assert cmp(X, Y) == 0
- assert is_unbound(X)
- assert is_unbound(Y)
+ assert is_free(X)
+ assert is_free(Y)
assert X == 1
- assert not is_unbound(Y)
+ assert is_bound(Y)
assert Y == 1
def test_is(self):
More information about the Pypy-commit
mailing list