Skip to content

Commit

Permalink
increase test cov
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Jun 17, 2016
1 parent dc35f63 commit 20c9027
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,18 @@ mod tests {
let output = serde_json::Value::Bool(true);
assert_eq!(to_json(&input).unwrap(), output);
}

#[test]
fn json_null_to_yaml() {
let input = serde_json::Value::Null;
let output = serde_yaml::Value::Null;
assert_eq!(to_yaml(&input).unwrap(), output);
}

#[test]
fn yaml_null_to_json() {
let input = serde_yaml::Value::Null;
let output = serde_json::Value::Null;
assert_eq!(to_json(&input).unwrap(), output);
}
}

0 comments on commit 20c9027

Please sign in to comment.