fix test tree with parseFloat while updating set

This commit is contained in:
Hubert Sokołowski
2023-06-20 02:27:10 +02:00
parent a1cafc7338
commit 9642dddb84
2 changed files with 5 additions and 5 deletions

View File

@@ -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>
))}

View File

@@ -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);
},
};