Test error boundaries and edge cases
Target null propagation, integer overflow, empty collections, and invalid enum values with tests that explicitly document the edge case they cover.
Preview
Copy prompt
Write a test suite focused specifically on error boundaries and edge cases in the following module: [Paste code]. Deliberately target: null and undefined propagation through function chains, integer and float boundary values including overflow, empty and single-element collections, values that arrive out of expected order under concurrency, and invalid or unexpected enum values. Precede each test with a comment explaining the specific edge case scenario it exercises.
More
Testing
Prompts
