Skip to content

Commit

Permalink
test all three streams
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Sep 6, 2016
1 parent 2a88127 commit 354db75
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,17 @@ mod tests {
use super::{is, Stream};

#[test]
fn is_test() {
fn is_out() {
assert!(is(Stream::Stdout))
}

#[test]
fn is_err() {
assert!(is(Stream::Stderr))
}

#[test]
fn is_in() {
assert!(is(Stream::Stdin))
}
}

0 comments on commit 354db75

Please sign in to comment.