Modifying Tests
This commit is contained in:
@@ -1,12 +1,25 @@
|
||||
class Foo(object):
|
||||
x:int = 0
|
||||
|
||||
def __init__(self:"Foo", x:int):
|
||||
self.x = x
|
||||
|
||||
def bar(y:int):
|
||||
print("Hello World!",self.x+y)
|
||||
y = 10
|
||||
|
||||
def get_stones(name:str)->str:
|
||||
color=["Red","Blue"]
|
||||
stones=["Mind","Soul"]
|
||||
def map_name(nm:str)->str:
|
||||
return stones[color.index(nm)]
|
||||
return map_name(name)
|
||||
|
||||
print("Hi")
|
||||
def fun1():
|
||||
def fun2():
|
||||
print("Hello")
|
||||
fun2()
|
||||
|
||||
print("World")
|
||||
|
||||
def fun3():
|
||||
def fun4():
|
||||
print("Hello")
|
||||
@@ -51,38 +64,17 @@ if True:
|
||||
else:
|
||||
print("World")
|
||||
|
||||
class Foo(object):
|
||||
x:int = 0
|
||||
|
||||
def __init__(self:"Foo", x:int):
|
||||
self.x = x
|
||||
|
||||
def bar(y:int)->None:
|
||||
print("Hello World!",self.x+y)
|
||||
y = 10
|
||||
|
||||
f = Foo(1)
|
||||
print(f.x)
|
||||
f.bar(4)
|
||||
|
||||
a=[[[1],[2]][[3],[4]]]
|
||||
a=[[[1],[2]],[[3],[4]]]
|
||||
print(a[0][0][1]*a[1][1][0])
|
||||
|
||||
multiline_string="Hi World,
|
||||
Here I am"
|
||||
|
||||
"""
|
||||
This is a
|
||||
multi-line comment.
|
||||
"""
|
||||
|
||||
|
||||
def get_stones(name:str)->str:
|
||||
color=['Red','Blue']
|
||||
stones=['Mind','Soul']
|
||||
def map_name(nm:str)->str:
|
||||
return stones[color.index(nm)]
|
||||
return map_name(name)
|
||||
|
||||
stone="Blue"
|
||||
print(get_stones(stone))
|
||||
Reference in New Issue
Block a user