Skip to content

Commit

Permalink
Update test file (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoletta authored Dec 15, 2023
1 parent 52f8e19 commit cbc1d52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/cases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mod common;
#[test_case("tests/cases/uint/compare.cairo")]
#[test_case("tests/cases/uint/consts.cairo")]
#[test_case("tests/cases/uint/downcasts.cairo")]
#[test_case("tests/cases/uint/safe_divmod.cairo" => ignore["TODO: cairo program is outdated"])]
#[test_case("tests/cases/uint/safe_divmod.cairo")]
#[test_case("tests/cases/uint/uint_addition.cairo")]
#[test_case("tests/cases/uint/uint_subtraction.cairo")]
#[test_case("tests/cases/uint/uint_try_from_felt.cairo")]
Expand Down
8 changes: 4 additions & 4 deletions tests/cases/uint/safe_divmod.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ fn u256_divmod(a: u256, b: u256) -> (u256, u256, bool) {
let rhs = u256_try_as_non_zero(b);
match rhs {
Option::Some(x) => {
let (res_l, res_r, c) = u256_safe_divmod(a, x);
(res_l, res_r, c)
let (res_l, res_r, _) = u256_safe_divmod(a, x);
(res_l, res_r, true)
},
Option::None(()) => (0_u256, 0_u256, false),
}
Expand All @@ -242,8 +242,8 @@ fn u512_divmod(a: u512, b: u256) -> (u512, u256, bool) {
let rhs = u256_try_as_non_zero(b);
match rhs {
Option::Some(x) => {
let (res_l, res_r, c) = u512_safe_div_rem_by_u256(a, x);
(res_l, res_r, c)
let (res_l, res_r) = u512_safe_div_rem_by_u256(a, x);
(res_l, res_r, true)
},
Option::None(()) => (
u512 {
Expand Down

0 comments on commit cbc1d52

Please sign in to comment.