medic-lib 0.3.1

Helpers for writing checks and steps for medic
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// @related [subject](medic-lib/src/lib.rs)

use super::*;

#[test]
fn utf8() {
  assert_eq!(std_to_string("héllo".as_bytes().to_vec()), "héllo");
}

#[test]
fn invalid_utf8() {
  assert_eq!(std_to_string(vec![b'a', 0xff, b'b']), "a\u{fffd}b");
}

#[test]
fn empty() {
  assert_eq!(std_to_string(Vec::new()), "");
}