-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLPC_Class_Pride.py
34 lines (22 loc) · 983 Bytes
/
LPC_Class_Pride.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from typing import Optional
from LeetPride import run_process
class Pride:
def __init__(self, pride: str):
self.love = pride
def loving(self, pride: str = '!!!') -> str:
return 'LGBTQ Lover ' + self.love + pride
def generate_tests():
# \/\/\/\/\/\/\/\/\/\/ Set tests in these sections \/\/\/\/\/\/\/\/\/\/ #
tests = (['Pride', 'loving', ],
['forever !',
None,
])
expected_test_results = [True, 'LGBTQ Lover forever !!!!', ]
# ^^^^^^^^^^^^^^^^^^^^ Set tests in these sections ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ #
return list(zip(tests[0], tests[1], expected_test_results))
def lpccp_example_main() -> Optional[int] | None:
return run_process(generate_tests(), params={'module': __name__})
def main() -> Optional[int] | None:
return lpccp_example_main()
if __name__ == '__main__': # most of this relevant only for large recursion situations or concurrency needs
exit(main())