auto-sync: 2026-05-13 00:30:01

This commit is contained in:
Stream
2026-05-13 00:30:02 +03:00
parent 11cadd3c0b
commit 375da6a21c
7 changed files with 416 additions and 12 deletions

View File

@@ -4,14 +4,6 @@
const fs = require('fs');
const path = require('path');
const filePath = process.argv[2];
if (!filePath) {
console.error('Usage: node parse_testcases.js <path-to-TEST_CASES.md>');
process.exit(1);
}
const content = fs.readFileSync(path.resolve(filePath), 'utf8');
function parseTestCases(md) {
const tests = [];
// Split by ### headers
@@ -82,5 +74,17 @@ function parseTestCases(md) {
return tests;
}
const result = parseTestCases(content);
console.log(JSON.stringify(result, null, 2));
// Export for use as module
module.exports = { parseTestCases };
// CLI mode
if (require.main === module) {
const filePath = process.argv[2];
if (!filePath) {
console.error('Usage: node parse_testcases.js <path-to-TEST_CASES.md>');
process.exit(1);
}
const content = fs.readFileSync(path.resolve(filePath), 'utf8');
const result = parseTestCases(content);
console.log(JSON.stringify(result, null, 2));
}