Write a comprehensive test script in [language] to perform [functional or non-functional] testing on the provided code snippet: [code snippet]. The code snippet should be thoroughly tested to ensure its reliability, accuracy, and adherence to requirements. Your test script should cover a wide range of test cases and scenarios, effectively validating the functionality and performance of the code. Consider both positive and negative test cases, edge cases, and any relevant constraints or dependencies. The goal is to provide a robust and rigorous testing framework that guarantees the code's quality and robustness. Please deliver the test script along with any necessary instructions or setup requirements to execute it effectively."