Skip to content

Commit

Permalink
increase test cov
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Aug 28, 2017
1 parent e2eea31 commit 13f12ce
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,15 @@ impl<W: Write> Write for Colors<W> {
mod tests {
use super::Colors;
use ansi_term::Color;
use std::io;
use std::io::{self, Write};

#[test]
fn colors_colors() {
assert_eq!(Colors::new(io::sink()).color(0.0), Color::RGB(128, 237, 18))
}

#[test]
fn colors_writes() {
assert!(write!(&mut Colors::new(Vec::new()), "hello").is_ok());
}
}

0 comments on commit 13f12ce

Please sign in to comment.