|
|
|
|
|
by cormacrelf
1251 days ago
|
|
> It requires you to write tests and also blindly accept that your program is correct. No. You can say no. Just don’t accept it. You’re a human and it asks. Even if you do accept it you can modify it because you have eyes and a keyboard and it’s written right there where you wrote your test. See https://github.com/rust-analyzer/expect-test for a demo gif of the rust version. |
|
Yes you can except...
> You’re a human
Precisely. You're a human. Humans are lazy and bad at manually checking things are correct, especially if there's an "eh it's probably fine" option.
This is extremely well studied: https://en.wikipedia.org/wiki/Vigilance_(psychology)
As I said before, it's probably better than nothing in that it will help you detect obviously implausible results. But it really needs to be labelled as such otherwise people will assume that these are properly curated "golden" tests.