DOC: update sample calc.c to match doc - #1506
Conversation
|
Thanks for taking care of this AI slob. The file is used nowhere, so I decided for a simpler fix by deleting it 😄 Commit d6ef213 |
|
My plan was to have copies of the example code, both to distribute and to run at least a smoke test to verify that there weren't typos. But I hadn't kept things in sync. :( Or added a smoke test. :( I guess that whoever modifies the documentation should verify that the code behaves as expected -- if we had a lot of examples, something that strips out the samples and runs them would be nice but that seems like too much work. On the other, does LaTex have an "include verbatim" facility? If so, we could split out the samples and avoid the duplication problem. (And maybe add some smoke tests) |
I think something like that exists. Would require some serious annotation to automatically test the examples. Surely worth considering, but not on my shortllist. |
|
The problem is -- when I update an example, I often forget to test it. :( I suppose my code reviewer needs to be more vigilant. :) |
This replaces #1505.