nskinkel / libredsalt

2 stars 1 forks source link

get doctest working and improve bad examples #15

Closed nskinkel closed 9 years ago

nskinkel commented 9 years ago

doctest is currently not running, and I have no idea why. We should fix that and improve some of the (currently mostly bad, unhelpful, and probably slightly wrong) examples.

dwtj commented 9 years ago

I've only looked at this briefly, but I think that you can run the tests file-by-file with rustdoc --test FILE. I think that most of the examples which we have so far will fail because they lack needed imports and/or identifiers are not defined.

dwtj commented 9 years ago

I think I saw a proposal for a prelude feature for rustdoc examples, which would make it much easier. I'm not sure what happened with that proposal, though.

nskinkel commented 9 years ago

Closed in #22