tests: add debug function runReorderDebug

This commit is contained in:
Peter Fajdiga
2025-04-03 16:45:37 +02:00
parent 9621c2a75b
commit 92f6942eef

View File

@@ -22,6 +22,12 @@ function runReorder(...fs: (() => void)[]) {
}
}
function runReorderDebug(order: number[], ...fs: (() => void)[]) {
for (const index of order) {
fs[index]();
}
}
function randomInt(n: number) {
return Math.floor(Math.random() * n);
}