3 ms·
Or let us provide unit tests for generated code and automatically tell the AI to fix the code until the code passes the tests we provided.
by oliwary 4y ago
Or let us provide unit tests for generated code and automatically tell the AI to fix the code until the code passes the tests we provided.
- Ajedi32 4y agoOr tell the AI to write the unit tests itself, and let it run those to check its work. After all, that's how humans write code. We aren't so great at writing bug-free code on our first try without testing it either.
- saulpw 4y agoI had ChatGPT generate a table of 10 test cases for a Jewish calendar to Gregorian calendar conversion function. None of them were valid.