Closed Bug 1416876 Opened 8 years ago Closed 8 years ago

crossref.rs output is not stable

Categories

(Webtools :: Searchfox, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

I'd like to add some tests for crossref.rs, but the output (at least the file crossref) doesn't seem to have a stable order.
The cause of this is |table| being a HashMap, not a BTreeMap. Funnily enough, |id_table| is also a HashMap but doesn't have this issue in practice, because its keys are strings (instead of heap allocated data structures). I don't know how much we want to rely on this...
The third output of crossref.rs comes from iterating over a vector, and looks like it should be as stable as the input.
Blocks: 1416897
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.