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

Fix internal list pretty-printer (discovered by @hannesm) #14

Merged
merged 6 commits into from
Nov 19, 2020

Conversation

dinosaure
Copy link
Member

A bit sad to introduce this kind of bug... I will add some tests to check the behavior of the pretty-printer.

This kind of tests make sure that the pretty-printer works but
it does not highlight some assumptions such as the isomorphisme
between the encoder and the decoder.
@dinosaure
Copy link
Member Author

The last commit fix another issue about decoding quoted string. First at all, fws does not need to be so complex when we decided to preprocess folding whitespace with unstrctrd. Now, it returns a simple string of spaces (possibly empty). Then, a fix is added on quoted_string when it wants to prepend the value with a space in a wrong case.

I need to fill the PR with some others tests about pretty-printer but seems good enough for me to:

  1. merge it
  2. cut a release

Even if Emile.Parser.fws has a new type, I will cut emile.1.1.0 when nobody uses this part of emile.

@dinosaure dinosaure merged commit 610b9ab into master Nov 19, 2020
dinosaure added a commit to dinosaure/opam-repository that referenced this pull request Nov 19, 2020
CHANGES:

- Add some tests to check the behavior of the pretty-printer (@dinosaure, mirage/emile#14)
- Fix the implementation of the quoted-string (@dinosaure, mirage/emile#14)
- Fix internal list pretty-printer (discovered by @hannes, @dinosaure, mirage/emile#14)
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