Open Issues Need Help
View All on GitHubExpressive assertions for Go. Make your tests readable, elegant, and easy to debug.
Expressive assertions for Go. Make your tests readable, elegant, and easy to debug.
Expressive assertions for Go. Make your tests readable, elegant, and easy to debug.
Expressive assertions for Go. Make your tests readable, elegant, and easy to debug.
AI Summary: Implement a new `BePositive` assertion function for the Go assertion library 'Should', ensuring it handles various numeric types, provides informative error messages, and integrates seamlessly with existing functionality. This includes adding the function to the library, writing comprehensive unit tests, updating documentation, and potentially modifying existing code for consistency.
Expressive assertions for Go. Make your tests readable, elegant, and easy to debug.
AI Summary: Rename the `StartsWith` and `EndsWith` functions in the Go assertion library to `StartWith` and `EndWith`, respectively, to maintain naming consistency. This involves updating function definitions, documentation, test cases, and examples in multiple files (assertions.go, assertions_test.go, should.go, should_test.go, and README.md). The functionality of the functions must remain unchanged.
Expressive assertions for Go. Make your tests readable, elegant, and easy to debug.
AI Summary: Implement a new `MatchRegex` assertion function for the Go assertion library 'Should', which checks if a string matches a given regular expression pattern. The function should handle multiline strings, provide informative error messages including hints for failures, and optionally accept a custom message. A complementary `NotMatchRegex` function might also be added.
Expressive assertions for Go. Make your tests readable, elegant, and easy to debug.
AI Summary: Implement a new `BeInRange` assertion function for the Go assertion library 'Should'. This function should check if a numeric value falls within a specified range (inclusive), providing detailed error messages indicating whether the value is above or below the range and by how much. The implementation should leverage existing functional options for custom error messages and maintain type safety using generics.
Expressive assertions for Go. Make your tests readable, elegant, and easy to debug.