News for hackers. Stuff that matters.
Re:We created the first open source implementation of Meta's... by joeberg8 on Tuesday May 21, 2024 @09:49AM (#40428491)
Seems decent enough for boilerplate. But if my code is incorrect, won’t an LLM generated a test for incorrect code?
Re:We created the first open source implementation of Meta's... by semi on Tuesday May 21, 2024 @10:38AM (#40429077)
Potentially, but if you wrote a test for your incorrect code wouldn't you do the same?

In the end I think the important part is not giving tests more trust than they deserve. If you fix the incorrect code and break a test you should give your change a closer look, but also give the test a closer look before you decide which needs to be fixed.

Re:We created the first open source implementation of Meta's... by _bohm on Tuesday May 21, 2024 @12:13PM (#40430372)
Depends on how you write tests. If you're writing tests by looking at the code you wrote and just asserting that it behaves as written, then yeah. If you're writing tests that assert that your code conforms to a predefined specification, then the tests could be the thing that helps you uncover the bugs.