@@ -17,7 +17,6 @@ fn test_binary_op_print() -> TestResult {
1717 left: Box :: new( Expr :: Number ( 2 ) ) ,
1818 right: Box :: new( Expr :: Number ( 2 ) ) ,
1919 op: Operation :: Add ,
20- return_type: Type :: Any ,
2120 }
2221 ) ;
2322 Ok ( ( ) )
@@ -40,11 +39,9 @@ fn test_multi_add_binary_op() -> TestResult {
4039 left: Box :: new( Expr :: Number ( 2 ) ) ,
4140 right: Box :: new( Expr :: Number ( 2 ) ) ,
4241 op: Operation :: Add ,
43- return_type: Type :: Any ,
4442 } ) ,
4543 right: Box :: new( Expr :: Number ( 4 ) ) ,
4644 op: Operation :: Add ,
47- return_type: Type :: Any ,
4845 }
4946 ) ;
5047 Ok ( ( ) )
@@ -76,10 +73,8 @@ fn test_multiply_add_binary_op() -> TestResult {
7673 left: Box :: new( Expr :: Number ( 2 ) ) ,
7774 right: Box :: new( Expr :: Number ( 4 ) ) ,
7875 op: Operation :: Multiply ,
79- return_type: Type :: Any ,
8076 } ) ,
8177 op: Operation :: Add ,
82- return_type: Type :: Any ,
8378 }
8479 ) ;
8580 assert_eq ! (
@@ -89,11 +84,9 @@ fn test_multiply_add_binary_op() -> TestResult {
8984 left: Box :: new( Expr :: Number ( 2 ) ) ,
9085 right: Box :: new( Expr :: Number ( 2 ) ) ,
9186 op: Operation :: Multiply ,
92- return_type: Type :: Any ,
9387 } ) ,
9488 right: Box :: new( Expr :: Number ( 4 ) ) ,
9589 op: Operation :: Add ,
96- return_type: Type :: Any ,
9790 }
9891 ) ;
9992 Ok ( ( ) )
@@ -111,7 +104,6 @@ fn test_equal_binary_op() -> TestResult {
111104 left: Box :: new( Expr :: Number ( 2 ) ) ,
112105 right: Box :: new( Expr :: Number ( 2 ) ) ,
113106 op: Operation :: Equal ,
114- return_type: Type :: Any ,
115107 }
116108 ) ;
117109 assert_eq ! (
@@ -120,7 +112,6 @@ fn test_equal_binary_op() -> TestResult {
120112 left: Box :: new( Expr :: Number ( 2 ) ) ,
121113 right: Box :: new( Expr :: Number ( 2 ) ) ,
122114 op: Operation :: NotEqual ,
123- return_type: Type :: Any ,
124115 }
125116 ) ;
126117 Ok ( ( ) )
0 commit comments