Rebasing and reviewer changes
This commit is contained in:
parent
3bf405682d
commit
113f8aa86b
6 changed files with 47 additions and 44 deletions
|
@ -735,7 +735,7 @@ mod tests {
|
|||
fn test_input(g: LabelledGraph) -> IoResult<String> {
|
||||
let mut writer = Vec::new();
|
||||
render(&g, &mut writer).unwrap();
|
||||
(&mut writer[]).read_to_string()
|
||||
(&mut writer.as_slice()).read_to_string()
|
||||
}
|
||||
|
||||
// All of the tests use raw-strings as the format for the expected outputs,
|
||||
|
@ -847,7 +847,7 @@ r#"digraph hasse_diagram {
|
|||
edge(1, 3, ";"), edge(2, 3, ";" )));
|
||||
|
||||
render(&g, &mut writer).unwrap();
|
||||
let r = (&mut writer[]).read_to_string();
|
||||
let r = (&mut writer.as_slice()).read_to_string();
|
||||
|
||||
assert_eq!(r.unwrap(),
|
||||
r#"digraph syntax_tree {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue