mirror of
https://github.com/hsokolowski/iTree.git
synced 2026-06-11 22:34:16 -04:00
fix test tree with parseFloat while updating set
This commit is contained in:
@@ -103,8 +103,8 @@ function ModalPopup({
|
||||
colorScheme={state.pivot == x.attribute2 ? 'green' : 'gray'}
|
||||
/>
|
||||
|
||||
<Code children={'Good: ' + x.match.length} />
|
||||
<Code children={'Bad: ' + x.notMatch.length} />
|
||||
<Code children={'Left: ' + x.match.length} />
|
||||
<Code children={'Right: ' + x.notMatch.length} />
|
||||
</Stack>
|
||||
</Tag>
|
||||
))}
|
||||
|
||||
@@ -63,12 +63,12 @@ var predicates = {
|
||||
return a === b;
|
||||
},
|
||||
'>=': function (a, b) {
|
||||
return a >= b;
|
||||
return parseFloat(a) >= parseFloat(b);
|
||||
},
|
||||
'<': function (a, b) {
|
||||
return a < b;
|
||||
return parseFloat(a) < parseFloat(b);
|
||||
},
|
||||
w: function (a, b, w) {
|
||||
return a < w * b;
|
||||
return parseFloat(a) < parseFloat(w) * parseFloat(b);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user