Move tests in basic/tests/ up one level preparating to multiple test dirs.

This commit is contained in:
Paul Sokolovsky
2014-01-19 18:41:55 +02:00
parent a11ceca807
commit 8c3858b016
87 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
a = [1, 2, 3]
print(a.index(1))
print(a.index(2))
print(a.index(3))
print(a.index(3, 2))
try:
print(a.index(3, 2, 2))
except ValueError:
print("Raised ValueError")
else:
print("Did not raise ValueError")
a = a + a
b = [0, 0, a]
print(a.index(2))
print(b.index(a))
print(a.index(2, 2))
try:
a.index(2, 2, 2)
except ValueError:
print("Raised ValueError")
else:
print("Did not raise ValueError")