Template for test repository for Reqsys project
This repository contains basic Python modules with comprehensive unit tests:
-
calculator.py - Simple calculator with arithmetic operations
add(a, b)- Add two numberssubtract(a, b)- Subtract b from amultiply(a, b)- Multiply two numbersdivide(a, b)- Divide a by b (with zero division error handling)power(a, b)- Raise a to the power of b
-
string_utils.py - String utility functions
reverse(text)- Reverse a stringcapitalize_words(text)- Capitalize first letter of each wordis_palindrome(text)- Check if string is a palindromecount_vowels(text)- Count vowels in a stringtruncate(text, length, suffix)- Truncate string with optional suffix