Viewing
Difficulty: Intermediate
152 prompts
Intermediate
Test automation (#8)
Generate [LANGUAGE] unit tests for this function. Cover: happy path, 3 edge cases, and one failure scenario. Use [TEST_FRAMEWORK]. Include...
Coding & Development
Generate [LANGUAGE] unit tests for this function. Cover: happy path, 3 edge cases, and one failure scenario. Use [TEST_FRAMEWORK]. Include setup/teardown and use naming consistent with [STYLE].
Intermediate
OOP design (#9)
Create a [LANGUAGE] class/struct implementing [INTERFACE/PATTERN]. Include constructor, properties, methods, error handling, and type hints. Follow [STYLE_GUIDE].
Coding & Development
Create a [LANGUAGE] class/struct implementing [INTERFACE/PATTERN]. Include constructor, properties, methods, error handling, and type hints. Follow [STYLE_GUIDE].