Skip to content

Commit

Permalink
#804 --ignore-score-size
Browse files Browse the repository at this point in the history
  • Loading branch information
davvd committed Dec 5, 2022
1 parent 32131bb commit 9a76765
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/zold/remotes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,14 @@ def assert_score_ownership(score)

def assert_score_strength(score)
return if score.strength >= Score::STRENGTH
raise CantAssert, "Score #{score.strength} is too weak (<#{Score::STRENGTH}): #{score.reduced(4)}"
raise CantAssert, "Score #{score.strength} is too weak (<#{Score::STRENGTH}): #{score.reduced(4)}
(use --ignore-score-strength to suppress this check)"
end

def assert_score_value(score, min)
raise CantAssert, "Score #{score.value} is too small (<#{min}): #{score.reduced(4)}" if score.value < min
return if score.value >= min
raise CantAssert, "Score #{score.value} is too small (<#{min}): #{score.reduced(4)}
(use --ignore-score-size to suppress this check)"
end
end

Expand Down

0 comments on commit 9a76765

Please sign in to comment.