You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ArgumentError: invalid value for BigDecimal(): "N/A" #13
When attempting to produce an export when a test is present without enough participants to calculate the statistical confidence, exports raise an exception attempting to convert the string "N/A" to a float.
> csv_data = Split::Export.to_csv
ArgumentError: invalid value for BigDecimal(): "N/A"
from /Users/markb/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/split-export-2.0.0/lib/split/export.rb:10:in `initialize'
Could it convert the number to an integer instead of a string to give a value of 0.0?
Activity
andrew commentedon Oct 3, 2017
@beet maybe we should just rescue and return the string instead?
beet commentedon Oct 3, 2017
@andrew great idea.
I was going to create a fork, but
rake specfails with:Tried upgrading rspec to 3.x, but can't get the tests to run.
nhippenmeyer commentedon Nov 17, 2017
I'm also seeing this exception for tests that have reached statistical significance. Can a patch be released to fix this bug?
splitrb#13 Rescue from ArgumentError when passing string into BigDeci…
Merge pull request #18 from Paprikas/fix-argument-error-issue-13
andrew commentedon Jul 19, 2018
Fixed in #18