Skip to content

Commit 7ce3e28

Browse files
committed
feat: add a macro function for testing
1 parent 7c777f2 commit 7ce3e28

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1+
from time import sleep
2+
3+
14
def macro_test(a: int, b: int):
25
print(f"Calculating {a}+{b}...")
36
print(f"{a+b}")
47
return a + b
8+
9+
10+
def macro_test_takes_time(a: int, b: int):
11+
print(f"Calculating {a}+{b}...")
12+
sleep(3)
13+
print("thinking...")
14+
sleep(3)
15+
print(f"{a+b}")
16+
return a + b

0 commit comments

Comments
 (0)