Escribir las pruebas
Genera casos de prueba que cubren el uso normal, los casos límite y los fallos.
«Códigos slash» de Claude: Programación / Tecnología
Write tests for the code below using [TEST FRAMEWORK]. Cover normal cases, boundary values, invalid input and failure paths. Name each test after the behaviour it checks. Before the code, give a short table of the cases and what each one proves. Tell me about any behaviour that is unclear from the code, so I can decide what is correct. Code: [PASTE CODE]