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

refactor(csv): improve assertion parsing and add warning for single underscore usage #1692

Merged
merged 9 commits into from
Sep 17, 2024

Conversation

mldangelo
Copy link
Member

  • Update assertionFromString to use a dynamic regex based on BaseAssertionTypes
  • Add warning for single underscore usage with reserved keys in testCaseFromCsvRow
  • Improve type safety and readability in assertionFromString
  • Update tests to cover new functionality and edge cases

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@mldangelo mldangelo merged commit cb5508a into main Sep 17, 2024
12 checks passed
@mldangelo mldangelo deleted the chore/csv-warning branch September 17, 2024 04:08
Din-m-shin pushed a commit to Din-m-shin/promptfoo that referenced this pull request Sep 24, 2024
Din-m-shin pushed a commit to Din-m-shin/promptfoo that referenced this pull request Sep 25, 2024
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

1 participant