Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhances the testing of the atoi implementation in the repository. While the current test suite checks the basic functionality of atoi, it does not verify that it handles overflow conditions correctly, which is an important aspect of the original atoi function. To address this limitation, introduces additional test cases that specifically check for overflow scenarios, such as when the input string represents a value greater/less than LONG_MAX or less/greater than LONG_MIN. The tests are designed to ensure that the atoi implementation correctly handles these overflow cases by returning values that may include 0, 1, 2, -1, -2, or similar values, mirroring the behavior of the original atoi function in these scenarios. Co-authored-by: kingcreek <[email protected]>
- Loading branch information