Commit 915a7f71 915a7f71b4b9a6959a10937dfcf395c561742ebf by Vincent Peybernes

#10 Error in new test 20x9

1 parent b9697822
Pipeline #19 for 915a7f71 passed in 57 seconds
...@@ -178,7 +178,6 @@ ...@@ -178,7 +178,6 @@
178 return 0; 178 return 0;
179 }); 179 });
180 result = result.concat(proposed.map(candidate => candidate.name)); 180 result = result.concat(proposed.map(candidate => candidate.name));
181 cursor = result.length;
182 proposed.splice(0); 181 proposed.splice(0);
183 continue; 182 continue;
184 } 183 }
......
...@@ -19,6 +19,7 @@ describe('RelativePlacement algo', () => { ...@@ -19,6 +19,7 @@ describe('RelativePlacement algo', () => {
19 (testData,id) => { 19 (testData,id) => {
20 testData.id = id; 20 testData.id = id;
21 it('#'+id+': '+(testData.comment||''), ()=>{ 21 it('#'+id+': '+(testData.comment||''), ()=>{
22 id;
22 var votes = compileVotes(testData); 23 var votes = compileVotes(testData);
23 24
24 var result = relativePlacement(votes); 25 var result = relativePlacement(votes);
......