File size: 912 Bytes
0ea56ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { createVersionedName } from './dist/project-manager.js';

console.log("== PRUEBA DE ACORTAMIENTO DE RUTAS (ANTI MAX_PATH) ==\n");

// Simulando el ciclo de vida de un proyecto real hiper-iterado
let nombreCarpeta = "tesis_impacto_ambiental_acustico_en_zonas_urbanas_v1_1711234567";
console.log(`Proyecto Original: ${nombreCarpeta} (Longitud: ${nombreCarpeta.length})`);

for (let i = 2; i <= 6; i++) {
    nombreCarpeta = createVersionedName(nombreCarpeta, i, "patch_section", "marco_teorico.tex");
    console.log(`Iteraci贸n V${i}: ${nombreCarpeta} (Longitud: ${nombreCarpeta.length})`);
}

console.log("\nSimulando un nombre de operaci贸n muy largo: restructure_project");
for (let i = 7; i <= 8; i++) {
    nombreCarpeta = createVersionedName(nombreCarpeta, i, "restructure_project", "anexos_finales.tex");
    console.log(`Iteraci贸n V${i}: ${nombreCarpeta} (Longitud: ${nombreCarpeta.length})`);
}