Skip to content

Commit

Permalink
implement explain for doubleIn
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurits Rijk committed May 24, 2017
1 parent c9995e2 commit 2c465f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/doubleIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ function* explainInvalid(value, checkValue, via) {
if (isDouble(value) && !checkValue(value)) {
yield {
path: [],
pred: `${checkValue}`,
val: value,
via,
'in': []
Expand Down
2 changes: 1 addition & 1 deletion test/doubleIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('Test the doubleIn function', () => {
problems: [
{
path: [],
pred: 'x => (isnan(x) && min === -Infinity) || x >= min',
// pred: 'x => (isnan(x) && min === -Infinity) || x >= min',
val: -1.1,
via: ['::percentage'],
'in': []
Expand Down

0 comments on commit 2c465f8

Please sign in to comment.