add tabs to printing in the test
This commit is contained in:
@ -3,8 +3,8 @@
|
||||
from time import sleep
|
||||
|
||||
def run():
|
||||
print("Test Sleep Long: start")
|
||||
print("\tTest Sleep Long: start")
|
||||
sleep(10)
|
||||
print("Test Sleep Long: done")
|
||||
print("\tTest Sleep Long: done")
|
||||
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
from time import sleep
|
||||
|
||||
def run():
|
||||
print("Test Sleep: start")
|
||||
print("\tTest Sleep: start")
|
||||
sleep(1)
|
||||
print("Test Sleep: done")
|
||||
print("\tTest Sleep: done")
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@ N = 0
|
||||
|
||||
def run():
|
||||
global N
|
||||
print("Test Global Variable:", N)
|
||||
print("\tTest Global Variable:", N)
|
||||
N += 1
|
||||
|
||||
|
||||
|
@ -17,7 +17,7 @@ counter = Counter()
|
||||
|
||||
|
||||
def run():
|
||||
print("Test Global Class:", counter)
|
||||
print("\tTest Global Class:", counter)
|
||||
counter.inc()
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@ class Run:
|
||||
self.n += 1
|
||||
|
||||
def __str__(self):
|
||||
return f"Test Callable Class: {self.n}"
|
||||
return f"\tTest Callable Class: {self.n}"
|
||||
|
||||
def __call__(self):
|
||||
print(self)
|
||||
|
@ -6,7 +6,7 @@ from time import sleep
|
||||
def run():
|
||||
n = 0
|
||||
while True:
|
||||
print(f"Test Infinite Loop: {n}")
|
||||
print(f"\tTest Infinite Loop: {n}")
|
||||
n += 1
|
||||
sleep(0.3)
|
||||
|
||||
|
Reference in New Issue
Block a user