Skip to content

Commit

Permalink
Rollup merge of #135594 - lolbinarycat:tester.js-order-error, r=notri…
Browse files Browse the repository at this point in the history
…ddle

fix error for when results in a rustdoc-js test are in the wrong order

see #131806 (comment)
  • Loading branch information
matthiaskrgr authored Jan 17, 2025
2 parents c438930 + 08c1256 commit 231057c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/rustdoc-js/tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ async function runSearch(query, expected, doSearch, loadedFile, queryName) {
JSON.stringify(results[key][index]) + "'");
} else if (ignore_order === false && entry_pos < prev_pos) {
error_text.push(queryName + "==> '" + JSON.stringify(elem) + "' was supposed " +
"to be before '" + JSON.stringify(results[key][entry_pos]) + "'");
"to be before '" + JSON.stringify(results[key][prev_pos]) + "'");
} else {
prev_pos = entry_pos;
}
Expand Down

0 comments on commit 231057c

Please sign in to comment.