basic tests
This commit is contained in:
parent
2a04b62f45
commit
4ae6c97904
25 changed files with 158 additions and 25 deletions
|
|
@ -1 +1 @@
|
|||
42
|
||||
42
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
x
|
||||
x
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
x = 5
|
||||
x = 5
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
2 + 3
|
||||
2 + 3
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
x = 2 + 3
|
||||
x = 2 + 3
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
x = 5
|
||||
y = 10
|
||||
y = 10
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
foo()
|
||||
foo()
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
print(x, y)
|
||||
print(x, y)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
if x
|
||||
y = 5
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ if x
|
|||
y = 5
|
||||
else
|
||||
y = 10
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
for i in items
|
||||
print(i)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
while x
|
||||
x = x - 1
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
def add(a, b)
|
||||
return a + b
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ if x
|
|||
if y
|
||||
z = 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
[1, 2, 3]
|
||||
[1, 2, 3]
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
obj.method()
|
||||
|
|
@ -1 +1 @@
|
|||
lst[0]
|
||||
lst[0]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
"hello"
|
||||
"hello"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
x and y
|
||||
x and y
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
not x
|
||||
not x
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@ class Point
|
|||
@x = x
|
||||
@y = y
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ class Counter
|
|||
def increment
|
||||
@count = @count + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue