Closed andreasbaumann closed 6 years ago
same here:
shell> diff tests/document_url_docid_insert.{must,res}
1c1
< {"result":"ok"}
---
> {"execution_time":0.070658899,"result":"ok"}
We have to read the must and the res file, demarshall them, ignore some fields like
execution_time
and normalize some others like weight
.
fixed the tests, but the weights are still flipping from machine to machine.
The weights should be compared with less precision.
This one seems trivial:
Scores and weights are floats which cannot be handled by just diffing the results:
We must demarshall the
.res
and the.must
file and make a special comparition operation for floats.