From bd339b20a6b2a724bf04733c73e7fa626c70d1a4 Mon Sep 17 00:00:00 2001 From: Agent Workbench Date: Sat, 2 May 2026 14:52:01 +0800 Subject: [PATCH] Agent Workbench: New Session --- __pycache__/simple_function.cpython-312.pyc | Bin 0 -> 471 bytes simple_function.py | 6 ++++++ test_simple_function.py | 11 +++++++++++ 3 files changed, 17 insertions(+) create mode 100644 __pycache__/simple_function.cpython-312.pyc create mode 100644 simple_function.py create mode 100644 test_simple_function.py diff --git a/__pycache__/simple_function.cpython-312.pyc b/__pycache__/simple_function.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d70dbb594d423c8434e2791b610067ce9932a889 GIT binary patch literal 471 zcmXv|J4?e*6h1dMwe?X&a8VTEAX+eueOOx%!9|>06a<%$CPy30quksgEe;M2ic2RI zM0fG0xQO6jCc!^YEG|yo8|{H}&Uc>Q_ngg+fH3Rf+r1X~Qx*eD{eyl{fE#e&91Z}9 zLyngK*n|S82nR=bB7d8MOrTBMG^g7C{bWi-l-?f~L3|^pa3^l>=`Q4GXK_=DT)*j| zcGwDR?uLQJ8y44&7$T1ZMy(Yg%XiY-=y~C?7L)l$$dOnLEFU9Dr2W*5M(Cr#&~=Qw zb%X)ePeOKF$G~nF5^?b@GB`%us1#~gwo65Q&9=&V87nJ#wZ3+!7s`cFb+u9})@|GP zlVlDg<(us|l_+9qK`2S1NfFNABRkdI>u%l7zl_elsIz_1gg9fGzU2m{8K?F`<~ch# zn%v2OR4oTh<_4UpVx47V7)lP;{m^N7xWTfbOlTGa=utw*m!golUIx^$i_R;ZepiPt S7rN=I{F^%6qoB?tZ+-#q#C5O$ literal 0 HcmV?d00001 diff --git a/simple_function.py b/simple_function.py new file mode 100644 index 0000000..21b5013 --- /dev/null +++ b/simple_function.py @@ -0,0 +1,6 @@ +def greet(name): + """A simple function that greets the user.""" + return f"Hello, {name}!" + +if __name__ == "__main__": + print(greet("World")) diff --git a/test_simple_function.py b/test_simple_function.py new file mode 100644 index 0000000..30e43e5 --- /dev/null +++ b/test_simple_function.py @@ -0,0 +1,11 @@ +import unittest +from simple_function import greet + +class TestSimpleFunction(unittest.TestCase): + def test_greet(self): + self.assertEqual(greet("Alice"), "Hello, Alice!") + self.assertEqual(greet("Bob"), "Hello, Bob!") + self.assertEqual(greet(""), "Hello, !") + +if __name__ == "__main__": + unittest.main()