first succeeding precedence tests

This commit is contained in:
Dave Halter
2014-01-31 11:12:28 +01:00
parent 62a74a6d2f
commit cd1660dc53
4 changed files with 105 additions and 42 deletions

View File

@@ -1,25 +0,0 @@
"""
Test Jedi's operation understanding. Jedi should understand simple additions,
multiplications, etc.
"""
x = [1, '', 'a', 1.0]
#? int() str() float()
x[12]
#? str()
x[1 + 1]
index = 0 + 1
#? str()
x[index]
def calculate(number):
return number + constant
constant = 1
#? float()
x[calculate(2)]