@@ -548,7 +548,7 @@ mod tests {
548
548
from : uint , to : uint , label : & ' static str
549
549
}
550
550
551
- fn Edge ( from : uint , to : uint , label : & ' static str ) -> Edge {
551
+ fn edge ( from : uint , to : uint , label : & ' static str ) -> Edge {
552
552
Edge { from : from, to : to, label : label }
553
553
}
554
554
@@ -723,7 +723,7 @@ r#"digraph single_node {
723
723
fn single_edge ( ) {
724
724
let labels : Trivial = UnlabelledNodes ( 2 ) ;
725
725
let result = test_input ( LabelledGraph :: new ( "single_edge" , labels,
726
- vec ! ( Edge ( 0 , 1 , "E" ) ) ) ) ;
726
+ vec ! ( edge ( 0 , 1 , "E" ) ) ) ) ;
727
727
assert_eq ! ( result. unwrap( ) . as_slice( ) ,
728
728
r#"digraph single_edge {
729
729
N0[label="N0"];
@@ -737,7 +737,7 @@ r#"digraph single_edge {
737
737
fn single_cyclic_node ( ) {
738
738
let labels : Trivial = UnlabelledNodes ( 1 ) ;
739
739
let r = test_input ( LabelledGraph :: new ( "single_cyclic_node" , labels,
740
- vec ! ( Edge ( 0 , 0 , "E" ) ) ) ) ;
740
+ vec ! ( edge ( 0 , 0 , "E" ) ) ) ) ;
741
741
assert_eq ! ( r. unwrap( ) . as_slice( ) ,
742
742
r#"digraph single_cyclic_node {
743
743
N0[label="N0"];
@@ -751,8 +751,8 @@ r#"digraph single_cyclic_node {
751
751
let labels = AllNodesLabelled ( vec ! ( "{x,y}" , "{x}" , "{y}" , "{}" ) ) ;
752
752
let r = test_input ( LabelledGraph :: new (
753
753
"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 , "" ) ) ) ) ;
756
756
assert_eq ! ( r. unwrap( ) . as_slice( ) ,
757
757
r#"digraph hasse_diagram {
758
758
N0[label="{x,y}"];
@@ -785,8 +785,8 @@ r#"digraph hasse_diagram {
785
785
786
786
let g = LabelledGraphWithEscStrs :: new (
787
787
"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 , ";" ) ) ) ;
790
790
791
791
render ( & g, & mut writer) . unwrap ( ) ;
792
792
let mut r = BufReader :: new ( writer. get_ref ( ) ) ;
0 commit comments