Skip to content

Commit 0cd10da

Browse files
improve var name
1 parent d912c6d commit 0cd10da

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/utils/src/tests/test_math.cairo

+8-8
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ fn test_mul_div_round_down_small_values() {
111111
(3, 4, 5, 2), (3, 5, 5, 3)]
112112
.span();
113113

114-
for round in round_down {
114+
for rounding in round_down {
115115
for args in args_list {
116116
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);
118118
}
119119
}
120120
}
@@ -133,10 +133,10 @@ fn test_mul_div_round_down_large_values() {
133133
]
134134
.span();
135135

136-
for round in round_down {
136+
for rounding in round_down {
137137
for args in args_list {
138138
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);
140140
};
141141
};
142142
}
@@ -148,10 +148,10 @@ fn test_mul_div_round_up_small_values() {
148148
(3, 4, 5, 3), (3, 5, 5, 3)]
149149
.span();
150150

151-
for round in round_up {
151+
for rounding in round_up {
152152
for args in args_list {
153153
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);
155155
}
156156
}
157157
}
@@ -170,10 +170,10 @@ fn test_mul_div_round_up_large_values() {
170170
]
171171
.span();
172172

173-
for round in round_up {
173+
for rounding in round_up {
174174
for args in args_list {
175175
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);
177177
};
178178
};
179179
}

0 commit comments

Comments
 (0)