Skip to content

Add ok helper function for doctests - #19

Merged
wiktor-k merged 5 commits into
mainfrom
wiktor-k/add-ok-fn
Sep 16, 2026
Merged

wiktor-k merged 5 commits into
mainfrom
wiktor-k/add-ok-fn

Conversation

@wiktor-k

@wiktor-k wiktor-k commented Sep 15, 2026 •

Copy link
Copy Markdown
Owner

Allows using testresult in doctests with an extremely succinct syntax:

/// ```
/// std::fs::File::open("/dev/null")?;
/// # testresult::ok(())
/// ```

(Just one line at the end)

@wiktor-k
wiktor-k force-pushed the wiktor-k/add-ok-fn branch 3 times, most recently from d11ff2a to 4a14062 Compare September 16, 2026 10:02
Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
@wiktor-k
wiktor-k merged commit d563cdb into main Sep 16, 2026
14 checks passed
@wiktor-k
wiktor-k deleted the wiktor-k/add-ok-fn branch September 16, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant