mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
Fix: Sort tests numerically in script
This commit is contained in:
@@ -72,7 +72,11 @@ const main = async () => {
|
|||||||
if (sModel && !allModels.includes(sModel)) throw new Error(`Model "${sModel}" not found in README.`);
|
if (sModel && !allModels.includes(sModel)) throw new Error(`Model "${sModel}" not found in README.`);
|
||||||
const models = sModel ? [sModel] : allModels;
|
const models = sModel ? [sModel] : allModels;
|
||||||
|
|
||||||
const testDirs = (await fs.readdir(TESTS, { withFileTypes: true })).filter(d => d.isDirectory()).map(d => d.name).sort();
|
const testDirs = (await fs.readdir(TESTS, { withFileTypes: true }))
|
||||||
|
.filter(d => d.isDirectory())
|
||||||
|
.map(d => d.name)
|
||||||
|
.sort((a, b) => parseInt(a) - parseInt(b));
|
||||||
|
|
||||||
let targetTests = [];
|
let targetTests = [];
|
||||||
|
|
||||||
const candidates = sTest
|
const candidates = sTest
|
||||||
|
|||||||
Reference in New Issue
Block a user