Skip to content

Commit

Permalink
update condition for valid solution
Browse files Browse the repository at this point in the history
  • Loading branch information
yancyribbens committed Oct 3, 2024
1 parent a33303a commit bc281e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ mod tests {
if subset_sum.is_positive() {
let sum: Amount = subset_sum.to_unsigned().unwrap();

if sum >= target {
if sum >= target + CHANGE_LOWER {
solutions.push(subset.clone());
}
}
Expand Down Expand Up @@ -294,7 +294,7 @@ mod tests {
}

Ok(())
}).seed(0x220b701100000032);
});
}
}

0 comments on commit bc281e7

Please sign in to comment.