@@ -548,7 +548,7 @@ mod tests {
548548 from : uint , to : uint , label : & ' static str
549549 }
550550
551- fn Edge ( from : uint , to : uint , label : & ' static str ) -> Edge {
551+ fn edge ( from : uint , to : uint , label : & ' static str ) -> Edge {
552552 Edge { from : from, to : to, label : label }
553553 }
554554
@@ -723,7 +723,7 @@ r#"digraph single_node {
723723 fn single_edge ( ) {
724724 let labels : Trivial = UnlabelledNodes ( 2 ) ;
725725 let result = test_input ( LabelledGraph :: new ( "single_edge" , labels,
726- vec ! ( Edge ( 0 , 1 , "E" ) ) ) ) ;
726+ vec ! ( edge ( 0 , 1 , "E" ) ) ) ) ;
727727 assert_eq ! ( result. unwrap( ) . as_slice( ) ,
728728r#"digraph single_edge {
729729 N0[label="N0"];
@@ -737,7 +737,7 @@ r#"digraph single_edge {
737737 fn single_cyclic_node ( ) {
738738 let labels : Trivial = UnlabelledNodes ( 1 ) ;
739739 let r = test_input ( LabelledGraph :: new ( "single_cyclic_node" , labels,
740- vec ! ( Edge ( 0 , 0 , "E" ) ) ) ) ;
740+ vec ! ( edge ( 0 , 0 , "E" ) ) ) ) ;
741741 assert_eq ! ( r. unwrap( ) . as_slice( ) ,
742742r#"digraph single_cyclic_node {
743743 N0[label="N0"];
@@ -751,8 +751,8 @@ r#"digraph single_cyclic_node {
751751 let labels = AllNodesLabelled ( vec ! ( "{x,y}" , "{x}" , "{y}" , "{}" ) ) ;
752752 let r = test_input ( LabelledGraph :: new (
753753 "hasse_diagram" , labels,
754- vec ! ( Edge ( 0 , 1 , "" ) , Edge ( 0 , 2 , "" ) ,
755- Edge ( 1 , 3 , "" ) , Edge ( 2 , 3 , "" ) ) ) ) ;
754+ vec ! ( edge ( 0 , 1 , "" ) , edge ( 0 , 2 , "" ) ,
755+ edge ( 1 , 3 , "" ) , edge ( 2 , 3 , "" ) ) ) ) ;
756756 assert_eq ! ( r. unwrap( ) . as_slice( ) ,
757757r#"digraph hasse_diagram {
758758 N0[label="{x,y}"];
@@ -785,8 +785,8 @@ r#"digraph hasse_diagram {
785785
786786 let g = LabelledGraphWithEscStrs :: new (
787787 "syntax_tree" , labels,
788- vec ! ( Edge ( 0 , 1 , "then" ) , Edge ( 0 , 2 , "else" ) ,
789- Edge ( 1 , 3 , ";" ) , Edge ( 2 , 3 , ";" ) ) ) ;
788+ vec ! ( edge ( 0 , 1 , "then" ) , edge ( 0 , 2 , "else" ) ,
789+ edge ( 1 , 3 , ";" ) , edge ( 2 , 3 , ";" ) ) ) ;
790790
791791 render ( & g, & mut writer) . unwrap ( ) ;
792792 let mut r = BufReader :: new ( writer. get_ref ( ) ) ;
0 commit comments