dkubb / yardstick

A tool for verifying YARD documentation coverage
http://wiki.github.com/dkubb/yardstick
MIT License
171 stars 22 forks source link

Make sure verify and measurement report use the same rounding logic #14

Closed plexus closed 11 years ago

plexus commented 11 years ago

I was getting a slightly different number in the measurement.txt report (99.3%) as opposed to what verify was telling me (99.2%)

dkubb commented 11 years ago

@plexus thanks for this, merged!

One thing I noticed is that the specs were failing, but I fixed them by changing the rounding to be consistent across the board (among other things). I changed the code to use #floor rather than #ceil, because I don't want "almost 100%" code being rounded up to 100%.