Skip to content

Commit

Permalink
Merge branch 'main' into fix/throw-openai-error-response
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed Apr 3, 2024
2 parents 3e7dfad + fa1c0c3 commit 48804dc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/scorer/src/provider/deterministic/script.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const humanEval = {

// Using relative path to use the python script from HumanEval example
// Tests run out of the $root/packages/evals directory
const scriptPath = "../../examples/humaneval/eval.py";
const scriptPath = "../../examples/humaneval/score.py";

test("script scorer works for a correct humaneval output", async () => {
const sample: DatasetSample = {
Expand All @@ -37,7 +37,7 @@ test("script scorer works for a correct humaneval output", async () => {
{
score: 1,
name: "unit-tests",
message: "",
message: "Tests passed",
},
]);
});
Expand Down Expand Up @@ -91,10 +91,9 @@ test("script scorer works for a humaneval output that has backticks", async () =
}),
).toStrictEqual([
{
score: 0,
score: 1,
name: "unit-tests",
message:
"SyntaxError('invalid syntax', ('<string>', 1, 1, '```python\\n', 1, 2))",
message: "Tests passed",
},
]);
});
Expand Down

0 comments on commit 48804dc

Please sign in to comment.