Skip to content

Commit

Permalink
Updated rate example
Browse files Browse the repository at this point in the history
  • Loading branch information
iceener committed Nov 4, 2024
1 parent 321c155 commit 4230b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rate/rate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ tests:
if (typeof parsed.reason !== 'string' || typeof parsed.score !== 'number') {
throw new Error('Output should have a string reason and a number score');
}
if (parsed.score < 0.2 || parsed.score >= 0.5) {
throw new Error(`Expected medium score (0.2-0.5), got ${parsed.score}`);
if (parsed.score < 0.1 || parsed.score > 0.5) {
throw new Error(`Expected medium score (0.1-0.5), got ${parsed.score}`);
}
if (!parsed.reason.toLowerCase().includes('hardware')) {
throw new Error('Reason should mention hardware');
Expand Down

0 comments on commit 4230b9c

Please sign in to comment.