Changed RFrac equality in scripts
Now, fractions are considered equal if they have the same ratio: - 6/6 == 12/12 => True - 3/6 == 3/12 => False - 1/6 == 2/12 => True It's interesting to note this implementation is actually more numerically stable than float comparison, though that wasn't really the goal. The main reason for this is to allow other fields to take over when sorting multi-field fractional data: cov (lines + branches), testmarks (passed + time), etc. Before, sorting would usually stop after mismatched fraction fields, which wasn't all that useful.
This commit is contained in:
@@ -393,7 +393,7 @@ test-list list-tests: test-runner
|
||||
|
||||
## Summarize the test results
|
||||
.PHONY: testmarks
|
||||
testmarks: SUMMARYFLAGS+=-Stime
|
||||
testmarks: SUMMARYFLAGS+=-spassed -Stime
|
||||
testmarks: $(TEST_CSV) $(BUILDDIR)/lfs.test.csv
|
||||
$(strip ./scripts/summary.py $(TEST_CSV) \
|
||||
-bsuite \
|
||||
|
||||
Reference in New Issue
Block a user