Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow omitted lines like rustdoc tests do #21

Merged
merged 1 commit into from
Apr 8, 2017
Merged

Allow omitted lines like rustdoc tests do #21

merged 1 commit into from
Apr 8, 2017

Conversation

dtolnay
Copy link
Contributor

@dtolnay dtolnay commented Apr 7, 2017

I want to test all of the code on https://serde.rs using skeptic. I wrote a GitBook plugin to allow for omitted lines just like doc tests do.

# use std::collections::BTreeMap as Map;
#
#[allow(dead_code)]
fn main() {
    let map = Map::new();
    #
    # let _ = map;
}

This implementation matches the behavior in librustdoc/html/markdown.rs.

@brson brson merged commit 9cbbc09 into budziq:master Apr 8, 2017
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.

2 participants