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

Add support for expressions in the Text generator #32

Merged
merged 2 commits into from
Oct 11, 2017

Conversation

sdispater
Copy link

No description provided.

@codecov-io
Copy link

codecov-io commented Oct 11, 2017

Codecov Report

Merging #32 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
+ Coverage   85.88%   85.94%   +0.06%     
==========================================
  Files          34       34              
  Lines        1155     1160       +5     
==========================================
+ Hits          992      997       +5     
  Misses        163      163
Impacted Files Coverage Δ
populous/generators/text.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 292fe8b...5966c59. Read the comment docs.


assert len(sample) == 10
assert all((1 <= len(e) <= 4) for e in sample)

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we should also add a test with max_length=0 as there was apparently a bug with it :)

Copy link
Author

Choose a reason for hiding this comment

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

Done :-)

@k4nar
Copy link
Contributor

k4nar commented Oct 11, 2017

Closes #30.

@k4nar k4nar merged commit 375acc8 into peopledoc:master Oct 11, 2017
@sdispater sdispater deleted the text-length-expressions branch October 11, 2017 15:46
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

3 participants