diff options
author | Pierre-Henri Symoneaux <phsym@users.noreply.github.com> | 2017-06-06 00:35:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-06 00:35:39 +0200 |
commit | f0302ad1af7c1c0b0a0c3f550602bbd71f39e6bc (patch) | |
tree | 844d59fa72b6f1b66906a89e0a5870dc15fe96ff /src/utils.rs | |
parent | db825d9959c9c6037202e7af4d6a42bdcd95a20c (diff) | |
parent | 94b914f9b8ca9602326e4c485d1966c886331a9c (diff) |
Merge pull request #60 from phsym/fix_coverage_accuracy
Switched from coveralls to codecov & fixed coverage accuracy
Diffstat (limited to 'src/utils.rs')
-rw-r--r-- | src/utils.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils.rs b/src/utils.rs index c00b2d7..a9da33b 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -128,4 +128,11 @@ mod tests { print_align(&mut out, Alignment::CENTER, "foo", '*', 1, false).unwrap(); assert_eq!(out.as_string(), "foo"); } + + #[test] + fn utf8_error() { + let mut out = StringWriter::new(); + let res = out.write_all(&vec![0, 255]); + assert!(res.is_err()); + } } |