From ec3ff8520653e0b69cc140a5d1ba0be3a9e6bb3d Mon Sep 17 00:00:00 2001 From: forge-bot Date: Thu, 9 Jul 2026 01:02:18 +0000 Subject: [PATCH] Design Architecture for Utility Functions (iss-1ac610bafd4c) --- tests/test_string_utils.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/test_string_utils.py diff --git a/tests/test_string_utils.py b/tests/test_string_utils.py new file mode 100644 index 0000000..21c6248 --- /dev/null +++ b/tests/test_string_utils.py @@ -0,0 +1,15 @@ +import unittest +from utils.string_utils import capitalize_first_letter, reverse_string + + +class TestStringUtils(unittest.TestCase): + def test_capitalize_first_letter(self): + self.assertEqual(capitalize_first_letter('hello'), 'Hello') + self.assertEqual(capitalize_first_letter(''), '') + + def test_reverse_string(self): + self.assertEqual(reverse_string('hello'), 'olleh') + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file