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

Fixed Arbitrary instance for NestedBlock. #7

Merged
merged 1 commit into from
Jun 28, 2015
Merged

Conversation

jgm
Copy link
Contributor

@jgm jgm commented Jun 28, 2015

Previously arbitrary would only generate a LeafBlock for NestedBlock.
Hence documents with NestedBlock were not really being tested at all!
With this change we can see the bug reported separately in #6.

Previously arbitrary would only generate a LeafBlock for NestedBlock.
Hence documents with NestedBlock were not really being tested at all!
With this change we can see the bug reported separately in yesodweb#6.
@jgm
Copy link
Contributor Author

jgm commented Jun 28, 2015

Note that the Travis build is expected to fail, since this PR adds a failing test.

creichert added a commit that referenced this pull request Jun 28, 2015
Fixed Arbitrary instance for NestedBlock.
@creichert creichert merged commit f49e584 into yesodweb:master Jun 28, 2015
@creichert
Copy link
Member

Nice catch. I'm assuming this needs to be merged to test any potential fixes on #6.

jgm added a commit to jgm/css-text that referenced this pull request Jun 28, 2015
This allows the tests amended by yesodweb#7 and yesodweb#8 to pass again.

* Simplified parsing of nested blocks.
* Indefinite nesting levels are now allowed.
* Some illegal CSS that was allowed by the old parser is now
  excluded (e.g. `@print { background: red; }`).
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.

2 participants