Skip to content

Commit

Permalink
Add tests for README file
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed May 20, 2019
1 parent cc25041 commit 6f43769
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ exclude = ["/.travis.yml", "/dev"]

[badges]
travis-ci = { repository = "dguo/strsim-rs" }

[dev-dependencies]
doc-comment = "0.3"
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
//! This library implements string similarity metrics.

#[cfg(test)]
#[macro_use]
extern crate doc_comment;

#[cfg(test)]
doctest!("../README.md");

use std::char;
use std::cmp::{max, min};
use std::collections::HashMap;
Expand Down

0 comments on commit 6f43769

Please sign in to comment.