mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 00:51:02 +00:00
tests(readme): Use skeptic to test the readme
This commit is contained in:
committed by
Oliver Schneider
parent
84fa3fba58
commit
22d0bdae8a
@@ -0,0 +1,17 @@
|
||||
#[cfg(feature = "nightly-testing")]
|
||||
mod inner {
|
||||
extern crate skeptic;
|
||||
|
||||
pub fn main() {
|
||||
skeptic::generate_doc_tests(&["../README.md"]);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "nightly-testing"))]
|
||||
mod inner {
|
||||
pub fn main() {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
inner::main()
|
||||
}
|
||||
Reference in New Issue
Block a user