Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Plugable evaluators #13

Merged
merged 4 commits into from
Aug 31, 2023
Merged

feat: Plugable evaluators #13

merged 4 commits into from
Aug 31, 2023

Conversation

valya
Copy link
Collaborator

@valya valya commented Aug 30, 2023

No description provided.

ivov
ivov previously approved these changes Aug 31, 2023
Copy link
Collaborator

@ivov ivov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

test/utils.ts Outdated
test(t.expression, () => {
for (const test of t.tests.filter(
(test_) => test_.type === 'evaluation',
) as ExpressionTestEvaluation[]) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also use a predicate here instead of asserting.

Comment on lines +8 to +12
(e) => {
console.error(e);
},
undefined,
Evaluator,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing to address now but maybe the args would be nicer as an object in future.

@valya valya merged commit 917a576 into main Aug 31, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants