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 'grad' angles being unparseable #49

Merged
merged 2 commits into from
Nov 9, 2018
Merged

Conversation

antonok-edm
Copy link
Contributor

I switched the order of ends_with("rad") and ends_with("grad") so that the "rad" case doesn't try to parse any "grad" angles, and added some tests for parsing both.

@coveralls
Copy link

coveralls commented Nov 9, 2018

Pull Request Test Coverage Report for Build 590

  • 26 of 26 (100.0%) changed or added relevant lines in 1 file are covered.
  • 103 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.3%) to 76.912%

Files with Coverage Reduction New Missed Lines %
src/ui_solver.rs 1 83.33%
src/css.rs 1 93.33%
target/debug/build/glium-cc3f82791ed2ac9f/out/gl_bindings.rs 101 51.64%
Totals Coverage Status
Change from base Build 588: 0.3%
Covered Lines: 2162
Relevant Lines: 2811

💛 - Coveralls

src/css_parser.rs Outdated Show resolved Hide resolved
Copy link
Owner

@fschutt fschutt left a comment

Choose a reason for hiding this comment

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

Use FloatValue::new, otherwise, looks good to me

@antonok-edm
Copy link
Contributor Author

Makes sense. Also, turns out the radian to degree conversion was wrong (multiply by pi instead of divide), so I fixed that too.

@fschutt fschutt merged commit 810f0c5 into fschutt:master Nov 9, 2018
fschutt added a commit that referenced this pull request May 13, 2019
fix 'grad' angles being unparseable
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