Lorsque l'on veut supprimer un créneau qui est déjà vide, on obtient l'erreur suivante :
C:\Users\Mehdii\Documents\turing\turing-gl02-code\trunk\TuringSolution.js:142
var b1 = eventBeneficiaire.getBeneficiaire();
^
TypeError: Cannot read property 'getBeneficiaire' of undefined
at Object.<anonymous> (C:\Users\Mehdii\Documents\turing\turing-gl02-code\trunk\TuringSolution.js:142:39)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
La commande entrée est :
node TuringSolution.js -d "lundi 1300" test/test_planInfo_b.txt test/test_planInfo_i.txt
En ce qui concerne la même commande pour les fichiers .ics on obtient cette erreur :
C:\Users\Mehdii\Documents\turing\turing-gl02-code\trunk\node_modules\icalendar\lib\parser.js:227
throw new ParseError("Unable to parse calendar data; END:VCALENDAR not found!");
^
Error:
La commande entrée est :
node TuringSolution.js -d "lundi 1300" test/test_ical_b.ics test/test_ical_i.ics
node version 6.9.1 sous windows 10.
On onbtient la même erreur quand on veut déplacer un créneau vide avec la commande :
node TuringSolution.js -u "lundi 1300" "mardi 1300" test/test_planInfo_b.txt test/test_planInfo_i.txt