-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: Fix parser so that we are able to correctly detect sequences …
…of empty strings. (#1048) * Added unit tests to prevent regressions <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Fixes JSON parser to correctly detect sequences of empty strings and adds unit tests to prevent regressions. > > - **Behavior**: > - Fixes detection of triple-quoted strings in `JsonParseState` in `json_parse_state.rs` by using `next.next_if()` for peeking. > - Adds unit tests in `test_class.rs` to verify handling of empty string sequences. > - **Misc**: > - Removes unnecessary tuple destructuring in `mod.rs` in `coercer` directory. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 9903936. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
3 changed files
with
47 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters