doctests #1045

Closed
opened 2025-11-22 20:03:48 +00:00 by pennae · 3 comments
Owner

'nuf said

'nuf said
Member

what do you think this should look like?

ie, actual tests embedded in the C++ comments as python does?

apparently https://github.com/doctest/doctest implements this, so definitely worth investigating

what do you think this should look like? ie, actual tests embedded in the C++ comments as python does? apparently https://github.com/doctest/doctest implements this, so definitely worth investigating
Author
Owner

no, testing code snippets in examples the way the rust manual does it. this would be especially useful to show inconsistencies of documentation and code (as seen in cl/4619, where the documented signature was wrong. we would not have found that, but the example would have made it much more obvious during review.)

no, testing code snippets in examples the way the rust manual does it. this would be especially useful to show inconsistencies of documentation and code (as seen in cl/4619, where the documented signature was wrong. we would not have found *that*, but the example would have made it much more obvious during review.)
Member

close as duplicate of #1046 (yes, that one is newer)

close as duplicate of #1046 (yes, that one is newer)
helle closed this issue 2025-11-22 21:49:42 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#1045
No description provided.