mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-16 19:01:02 +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.`);
|
||||
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 = [];
|
||||
|
||||
const candidates = sTest
|
||||
|
||||
Reference in New Issue
Block a user