@@ -111,10 +111,10 @@ fn test_mul_div_round_down_small_values() {
111
111
(3 , 4 , 5 , 2 ), (3 , 5 , 5 , 3 )]
112
112
. span ();
113
113
114
- for round in round_down {
114
+ for rounding in round_down {
115
115
for args in args_list {
116
116
let (x , y , denominator , expected ) = args ;
117
- assert_eq! (math :: u256_mul_div (* x , * y , * denominator , round ), * expected );
117
+ assert_eq! (math :: u256_mul_div (* x , * y , * denominator , rounding ), * expected );
118
118
}
119
119
}
120
120
}
@@ -133,10 +133,10 @@ fn test_mul_div_round_down_large_values() {
133
133
]
134
134
. span ();
135
135
136
- for round in round_down {
136
+ for rounding in round_down {
137
137
for args in args_list {
138
138
let (x , y , denominator , expected ) = args ;
139
- assert_eq! (math :: u256_mul_div (* x , * y , * denominator , round ), * expected );
139
+ assert_eq! (math :: u256_mul_div (* x , * y , * denominator , rounding ), * expected );
140
140
};
141
141
};
142
142
}
@@ -148,10 +148,10 @@ fn test_mul_div_round_up_small_values() {
148
148
(3 , 4 , 5 , 3 ), (3 , 5 , 5 , 3 )]
149
149
. span ();
150
150
151
- for round in round_up {
151
+ for rounding in round_up {
152
152
for args in args_list {
153
153
let (x , y , denominator , expected ) = args ;
154
- assert_eq! (math :: u256_mul_div (* x , * y , * denominator , round ), * expected );
154
+ assert_eq! (math :: u256_mul_div (* x , * y , * denominator , rounding ), * expected );
155
155
}
156
156
}
157
157
}
@@ -170,10 +170,10 @@ fn test_mul_div_round_up_large_values() {
170
170
]
171
171
. span ();
172
172
173
- for round in round_up {
173
+ for rounding in round_up {
174
174
for args in args_list {
175
175
let (x , y , denominator , expected ) = args ;
176
- assert_eq! (math :: u256_mul_div (* x , * y , * denominator , round ), * expected );
176
+ assert_eq! (math :: u256_mul_div (* x , * y , * denominator , rounding ), * expected );
177
177
};
178
178
};
179
179
}
0 commit comments