How to use test_2_3 method in Lemoncheesecake

Best Python code snippet using lemoncheesecake

tests.py

Source:tests.py Github

copy

Full Screen

...110 testSetSkeleton(self, 2, 0)111 112 def test_0_2(self):113 testSetSkeleton(self, 0, 2)114 def test_2_3(self):115 testSetSkeleton(self, 2, 3)116 def test_1_3(self):117 testSetSkeleton(self, 1, 3)118 class TestDirect_2x2(unittest.TestCase):119 strategies = [None]120 padFile = "./testData/maps/rectangle/map2x2.txt" 121 def walkFunction(self):122 return walkDirect123 def test_0_1(self):124 testSetSkeleton(self, 0, 1)125 126 def test_1_0(self):127 testSetSkeleton(self, 1, 0)128 def test_0_0(self):129 testSetSkeleton(self, 0, 0)130 class TestDirect_7x9(unittest.TestCase):131 strategies = [None]132 padFile = "./testData/maps/rectangle/map7x9.txt" 133 def walkFunction(self):134 return walkDirect135 136 def test_1_2(self):137 testSetSkeleton(self, 1, 2)138 139 def test_0_1(self):140 testSetSkeleton(self, 0, 1)141 142 def test_1_0(self):143 testSetSkeleton(self, 1, 0)144 def test_0_0(self):145 testSetSkeleton(self, 0, 0)146 def test_2_0(self):147 testSetSkeleton(self, 2, 0)148 149 def test_0_2(self):150 testSetSkeleton(self, 0, 2)151 def test_2_3(self):152 testSetSkeleton(self, 2, 3)153 def test_1_3(self):154 testSetSkeleton(self, 1, 3)155 def test_5_2(self):156 testSetSkeleton(self, 5, 2)157 class TestDirect_9x4(unittest.TestCase):158 strategies = [None]159 padFile = "./testData/maps/rectangle/map9x4.txt" 160 def walkFunction(self):161 return walkDirect162 163 def test_1_2(self):164 testSetSkeleton(self, 1, 2)165 166 def test_0_1(self):167 testSetSkeleton(self, 0, 1)168 169 def test_1_0(self):170 testSetSkeleton(self, 1, 0)171 def test_0_0(self):172 testSetSkeleton(self, 0, 0)173 def test_2_0(self):174 testSetSkeleton(self, 2, 0)175 176 def test_0_2(self):177 testSetSkeleton(self, 0, 2)178 def test_2_3(self):179 testSetSkeleton(self, 2, 3)180 def test_1_3(self):181 testSetSkeleton(self, 1, 3)182 def test_5_2(self):183 testSetSkeleton(self, 5, 2)184 def test_2_2(self):185 testSetSkeleton(self, 2, 2)186 187 class TestDirect_10x10(unittest.TestCase):188 strategies = [None]189 padFile = "./testData/maps/rectangle/map10x10.txt" 190 def walkFunction(self):191 return walkDirect192 193 def test_1_2(self):194 testSetSkeleton(self, 1, 2)195 196 def test_0_1(self):197 testSetSkeleton(self, 0, 1)198 199 def test_1_0(self):200 testSetSkeleton(self, 1, 0)201 def test_0_0(self):202 testSetSkeleton(self, 0, 0)203 def test_2_0(self):204 testSetSkeleton(self, 2, 0)205 206 def test_0_2(self):207 testSetSkeleton(self, 0, 2)208 def test_2_3(self):209 testSetSkeleton(self, 2, 3)210 def test_1_3(self):211 testSetSkeleton(self, 1, 3)212 def test_5_2(self):213 testSetSkeleton(self, 5, 2)214 def test_2_5(self):215 testSetSkeleton(self, 2, 5)216 def test_5_5(self):217 testSetSkeleton(self, 5, 5)218 def test_2_2(self):219 testSetSkeleton(self, 2, 2)220 221 222 class TestZigZag_5x1(unittest.TestCase):223 strategies = [None]224 padFile = "./testData/maps/rectangle/map5x1.txt" 225 def walkFunction(self):226 return walkZigZag227 228 def test_1_0(self):229 testSetSkeleton(self, 1, 0)230 def test_0_0(self):231 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]232 testSetSkeleton(self, 0, 0, doNotTest)233 def test_2_0(self):234 testSetSkeleton(self, 2, 0)235 class TestZigZag_1x5(unittest.TestCase):236 strategies = [None]237 padFile = "./testData/maps/rectangle/map1x5.txt" 238 def walkFunction(self):239 return walkZigZag240 241 def test_0_1(self):242 testSetSkeleton(self, 0, 1)243 def test_0_0(self):244 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]245 testSetSkeleton(self, 0, 0, doNotTest)246 def test_0_2(self):247 testSetSkeleton(self, 0, 2)248 class TestZigZag_5x6(unittest.TestCase):249 strategies = [None]250 padFile = "./testData/maps/rectangle/map5x6.txt" 251 def walkFunction(self):252 return walkZigZag253 254 def test_1_2(self):255 testSetSkeleton(self, 1, 2)256 257 def test_0_1(self):258 testSetSkeleton(self, 0, 1)259 260 def test_1_0(self):261 testSetSkeleton(self, 1, 0)262 def test_0_0(self):263 testSetSkeleton(self, 0, 0)264 def test_2_0(self):265 testSetSkeleton(self, 2, 0)266 267 def test_0_2(self):268 testSetSkeleton(self, 0, 2)269 def test_2_3(self):270 testSetSkeleton(self, 2, 3)271 def test_1_3(self):272 testSetSkeleton(self, 1, 3)273 class TestZigZag_2x2(unittest.TestCase):274 strategies = [None]275 padFile = "./testData/maps/rectangle/map2x2.txt" 276 def walkFunction(self):277 return walkZigZag278 def test_0_1(self):279 testSetSkeleton(self, 0, 1)280 281 def test_1_0(self):282 testSetSkeleton(self, 1, 0)283 def test_0_0(self):284 testSetSkeleton(self, 0, 0)285 class TestZigZag_7x9(unittest.TestCase):286 strategies = [None]287 padFile = "./testData/maps/rectangle/map7x9.txt" 288 def walkFunction(self):289 return walkZigZag290 291 def test_1_2(self):292 testSetSkeleton(self, 1, 2)293 294 def test_0_1(self):295 testSetSkeleton(self, 0, 1)296 297 def test_1_0(self):298 testSetSkeleton(self, 1, 0)299 def test_0_0(self):300 testSetSkeleton(self, 0, 0)301 def test_2_0(self):302 testSetSkeleton(self, 2, 0)303 304 def test_0_2(self):305 testSetSkeleton(self, 0, 2)306 def test_2_3(self):307 testSetSkeleton(self, 2, 3)308 def test_1_3(self):309 testSetSkeleton(self, 1, 3)310 def test_5_2(self):311 testSetSkeleton(self, 5, 2)312 class TestZigZag_9x4(unittest.TestCase):313 strategies = [None]314 padFile = "./testData/maps/rectangle/map9x4.txt" 315 def walkFunction(self):316 return walkZigZag317 318 def test_1_2(self):319 testSetSkeleton(self, 1, 2)320 321 def test_0_1(self):322 testSetSkeleton(self, 0, 1)323 324 def test_1_0(self):325 testSetSkeleton(self, 1, 0)326 def test_0_0(self):327 testSetSkeleton(self, 0, 0)328 def test_2_0(self):329 testSetSkeleton(self, 2, 0)330 331 def test_0_2(self):332 testSetSkeleton(self, 0, 2)333 def test_2_3(self):334 testSetSkeleton(self, 2, 3)335 def test_1_3(self):336 testSetSkeleton(self, 1, 3)337 def test_5_2(self):338 testSetSkeleton(self, 5, 2)339 def test_2_2(self):340 testSetSkeleton(self, 2, 2)341 342 class TestZigZag_10x10(unittest.TestCase):343 strategies = [None]344 padFile = "./testData/maps/rectangle/map10x10.txt" 345 def walkFunction(self):346 return walkZigZag347 348 def test_1_2(self):349 testSetSkeleton(self, 1, 2)350 351 def test_0_1(self):352 testSetSkeleton(self, 0, 1)353 354 def test_1_0(self):355 testSetSkeleton(self, 1, 0)356 def test_0_0(self):357 testSetSkeleton(self, 0, 0)358 def test_2_0(self):359 testSetSkeleton(self, 2, 0)360 361 def test_0_2(self):362 testSetSkeleton(self, 0, 2)363 def test_2_3(self):364 testSetSkeleton(self, 2, 3)365 def test_1_3(self):366 testSetSkeleton(self, 1, 3)367 def test_5_2(self):368 testSetSkeleton(self, 5, 2)369 def test_2_5(self):370 testSetSkeleton(self, 2, 5)371 def test_5_5(self):372 testSetSkeleton(self, 5, 5)373 def test_2_2(self):374 testSetSkeleton(self, 2, 2)375 376 class TestZigZag_6x4(unittest.TestCase):377 strategies = [None]378 padFile = "./testData/maps/rectangle/map6x4.txt" 379 def walkFunction(self):380 return walkZigZag381 382 def test_1_2(self):383 testSetSkeleton(self, 1, 2)384 385 def test_0_1(self):386 testSetSkeleton(self, 0, 1)387 388 def test_1_0(self):389 testSetSkeleton(self, 1, 0)390 def test_0_0(self):391 testSetSkeleton(self, 0, 0)392 def test_2_0(self):393 testSetSkeleton(self, 2, 0)394 395 def test_0_2(self):396 testSetSkeleton(self, 0, 2)397 def test_2_3(self):398 testSetSkeleton(self, 2, 3)399 def test_1_3(self):400 testSetSkeleton(self, 1, 3)401 def test_5_2(self):402 testSetSkeleton(self, 5, 2)403 def test_2_2(self):404 testSetSkeleton(self, 2, 2)405 406 407 class TestDirectZigZag_5x1(unittest.TestCase):408 strategies = [None]409 padFile = "./testData/maps/rectangle/map5x1.txt" 410 def walkFunction(self):411 return walkDirectZigZag412 413 def test_1_0(self):414 testSetSkeleton(self, 1, 0)415 def test_0_0(self):416 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]417 testSetSkeleton(self, 0, 0, doNotTest)418 def test_2_0(self):419 testSetSkeleton(self, 2, 0)420 class TestDirectZigZag_1x5(unittest.TestCase):421 strategies = [None]422 padFile = "./testData/maps/rectangle/map1x5.txt" 423 def walkFunction(self):424 return walkDirectZigZag425 426 def test_0_1(self):427 testSetSkeleton(self, 0, 1)428 def test_0_0(self):429 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]430 testSetSkeleton(self, 0, 0, doNotTest)431 def test_0_2(self):432 testSetSkeleton(self, 0, 2)433 class TestDirectZigZag_5x6(unittest.TestCase):434 strategies = [None]435 padFile = "./testData/maps/rectangle/map5x6.txt" 436 def walkFunction(self):437 return walkDirectZigZag438 439 def test_1_2(self):440 testSetSkeleton(self, 1, 2)441 442 def test_0_1(self):443 testSetSkeleton(self, 0, 1)444 445 def test_1_0(self):446 testSetSkeleton(self, 1, 0)447 def test_0_0(self):448 testSetSkeleton(self, 0, 0)449 def test_2_0(self):450 testSetSkeleton(self, 2, 0)451 452 def test_0_2(self):453 testSetSkeleton(self, 0, 2)454 def test_2_3(self):455 testSetSkeleton(self, 2, 3)456 def test_1_3(self):457 testSetSkeleton(self, 1, 3)458 class TestDirectZigZag_2x2(unittest.TestCase):459 strategies = [None]460 padFile = "./testData/maps/rectangle/map2x2.txt" 461 def walkFunction(self):462 return walkDirectZigZag463 def test_0_1(self):464 testSetSkeleton(self, 0, 1)465 466 def test_1_0(self):467 testSetSkeleton(self, 1, 0)468 def test_0_0(self):469 testSetSkeleton(self, 0, 0)470 class TestDirectZigZag_7x9(unittest.TestCase):471 strategies = [None]472 padFile = "./testData/maps/rectangle/map7x9.txt" 473 def walkFunction(self):474 return walkDirectZigZag475 476 def test_1_2(self):477 testSetSkeleton(self, 1, 2)478 479 def test_0_1(self):480 testSetSkeleton(self, 0, 1)481 482 def test_1_0(self):483 testSetSkeleton(self, 1, 0)484 def test_0_0(self):485 testSetSkeleton(self, 0, 0)486 def test_2_0(self):487 testSetSkeleton(self, 2, 0)488 489 def test_0_2(self):490 testSetSkeleton(self, 0, 2)491 def test_2_3(self):492 testSetSkeleton(self, 2, 3)493 def test_1_3(self):494 testSetSkeleton(self, 1, 3)495 def test_5_2(self):496 testSetSkeleton(self, 5, 2)497 class TestDirectZigZag_9x4(unittest.TestCase):498 strategies = [None]499 padFile = "./testData/maps/rectangle/map9x4.txt" 500 def walkFunction(self):501 return walkDirectZigZag502 503 def test_1_2(self):504 testSetSkeleton(self, 1, 2)505 506 def test_0_1(self):507 testSetSkeleton(self, 0, 1)508 509 def test_1_0(self):510 testSetSkeleton(self, 1, 0)511 def test_0_0(self):512 testSetSkeleton(self, 0, 0)513 def test_2_0(self):514 testSetSkeleton(self, 2, 0)515 516 def test_0_2(self):517 testSetSkeleton(self, 0, 2)518 def test_2_3(self):519 testSetSkeleton(self, 2, 3)520 def test_1_3(self):521 testSetSkeleton(self, 1, 3)522 def test_5_2(self):523 testSetSkeleton(self, 5, 2)524 def test_2_2(self):525 testSetSkeleton(self, 2, 2)526 527 class TestDirectZigZag_10x10(unittest.TestCase):528 strategies = [None]529 padFile = "./testData/maps/rectangle/map10x10.txt" 530 def walkFunction(self):531 return walkDirectZigZag532 533 def test_1_2(self):534 testSetSkeleton(self, 1, 2)535 536 def test_0_1(self):537 testSetSkeleton(self, 0, 1)538 539 def test_1_0(self):540 testSetSkeleton(self, 1, 0)541 def test_0_0(self):542 testSetSkeleton(self, 0, 0)543 def test_2_0(self):544 testSetSkeleton(self, 2, 0)545 546 def test_0_2(self):547 testSetSkeleton(self, 0, 2)548 def test_2_3(self):549 testSetSkeleton(self, 2, 3)550 def test_1_3(self):551 testSetSkeleton(self, 1, 3)552 def test_5_2(self):553 testSetSkeleton(self, 5, 2)554 def test_2_5(self):555 testSetSkeleton(self, 2, 5)556 def test_5_5(self):557 testSetSkeleton(self, 5, 5)558 def test_2_2(self):559 testSetSkeleton(self, 2, 2)560 561 class TestDFSWithBounds_5x1(unittest.TestCase):562 strategies = list(DFSStrategy)563 padFile = "./testData/maps/rectangle/map5x1.txt" 564 def walkFunction(self):565 return dfsWithBounds566 567 def test_1_0(self):568 testSetSkeleton(self, 1, 0)569 def test_0_0(self):570 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]571 testSetSkeleton(self, 0, 0, doNotTest)572 def test_2_0(self):573 testSetSkeleton(self, 2, 0)574 class TestDFSWithBounds_1x5(unittest.TestCase):575 strategies = list(DFSStrategy)576 padFile = "./testData/maps/rectangle/map1x5.txt" 577 def walkFunction(self):578 return dfsWithBounds579 580 def test_0_1(self):581 testSetSkeleton(self, 0, 1)582 def test_0_0(self):583 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]584 testSetSkeleton(self, 0, 0, doNotTest)585 def test_0_2(self):586 testSetSkeleton(self, 0, 2)587 class TestDFSWithBounds_5x6(unittest.TestCase):588 strategies = list(DFSStrategy)589 padFile = "./testData/maps/rectangle/map5x6.txt" 590 def walkFunction(self):591 return dfsWithBounds592 593 def test_1_2(self):594 testSetSkeleton(self, 1, 2)595 596 def test_0_1(self):597 testSetSkeleton(self, 0, 1)598 599 def test_1_0(self):600 testSetSkeleton(self, 1, 0)601 def test_0_0(self):602 testSetSkeleton(self, 0, 0)603 def test_2_0(self):604 testSetSkeleton(self, 2, 0)605 606 def test_0_2(self):607 testSetSkeleton(self, 0, 2)608 def test_2_3(self):609 testSetSkeleton(self, 2, 3)610 def test_1_3(self):611 testSetSkeleton(self, 1, 3)612 class TestDFSWithBounds_2x2(unittest.TestCase):613 strategies = list(DFSStrategy)614 padFile = "./testData/maps/rectangle/map2x2.txt" 615 def walkFunction(self):616 return dfsWithBounds617 def test_0_1(self):618 testSetSkeleton(self, 0, 1)619 620 def test_1_0(self):621 testSetSkeleton(self, 1, 0)622 def test_0_0(self):623 testSetSkeleton(self, 0, 0)624 class TestDFSWithBounds_7x9(unittest.TestCase):625 strategies = list(DFSStrategy)626 padFile = "./testData/maps/rectangle/map7x9.txt" 627 def walkFunction(self):628 return dfsWithBounds629 630 def test_1_2(self):631 testSetSkeleton(self, 1, 2)632 633 def test_0_1(self):634 testSetSkeleton(self, 0, 1)635 636 def test_1_0(self):637 testSetSkeleton(self, 1, 0)638 def test_0_0(self):639 testSetSkeleton(self, 0, 0)640 def test_2_0(self):641 testSetSkeleton(self, 2, 0)642 643 def test_0_2(self):644 testSetSkeleton(self, 0, 2)645 def test_2_3(self):646 testSetSkeleton(self, 2, 3)647 def test_1_3(self):648 testSetSkeleton(self, 1, 3)649 def test_5_2(self):650 testSetSkeleton(self, 5, 2)651 class TestDFSWithBounds_9x4(unittest.TestCase):652 strategies = list(DFSStrategy)653 padFile = "./testData/maps/rectangle/map9x4.txt" 654 def walkFunction(self):655 return dfsWithBounds656 657 def test_1_2(self):658 testSetSkeleton(self, 1, 2)659 660 def test_0_1(self):661 testSetSkeleton(self, 0, 1)662 663 def test_1_0(self):664 testSetSkeleton(self, 1, 0)665 def test_0_0(self):666 testSetSkeleton(self, 0, 0)667 def test_2_0(self):668 testSetSkeleton(self, 2, 0)669 670 def test_0_2(self):671 testSetSkeleton(self, 0, 2)672 def test_2_3(self):673 testSetSkeleton(self, 2, 3)674 def test_1_3(self):675 testSetSkeleton(self, 1, 3)676 def test_5_2(self):677 testSetSkeleton(self, 5, 2)678 def test_2_2(self):679 testSetSkeleton(self, 2, 2)680 681 class TestDFSWithBounds_10x10(unittest.TestCase):682 strategies = list(DFSStrategy)683 padFile = "./testData/maps/rectangle/map10x10.txt" 684 def walkFunction(self):685 return dfsWithBounds686 687 def test_1_2(self):688 testSetSkeleton(self, 1, 2)689 690 def test_0_1(self):691 testSetSkeleton(self, 0, 1)692 693 def test_1_0(self):694 testSetSkeleton(self, 1, 0)695 def test_0_0(self):696 testSetSkeleton(self, 0, 0)697 def test_2_0(self):698 testSetSkeleton(self, 2, 0)699 700 def test_0_2(self):701 testSetSkeleton(self, 0, 2)702 def test_2_3(self):703 testSetSkeleton(self, 2, 3)704 def test_1_3(self):705 testSetSkeleton(self, 1, 3)706 def test_5_2(self):707 testSetSkeleton(self, 5, 2)708 def test_2_5(self):709 testSetSkeleton(self, 2, 5)710 def test_5_5(self):711 testSetSkeleton(self, 5, 5)712 def test_2_2(self):713 testSetSkeleton(self, 2, 2)714 715 class TestDFSWithBounds_6x4(unittest.TestCase):716 strategies = list(DFSStrategy)717 padFile = "./testData/maps/rectangle/map6x4.txt" 718 def walkFunction(self):719 return dfsWithBounds720 721 def test_1_2(self):722 testSetSkeleton(self, 1, 2)723 724 def test_0_1(self):725 testSetSkeleton(self, 0, 1)726 727 def test_1_0(self):728 testSetSkeleton(self, 1, 0)729 def test_0_0(self):730 testSetSkeleton(self, 0, 0)731 def test_2_0(self):732 testSetSkeleton(self, 2, 0)733 734 def test_0_2(self):735 testSetSkeleton(self, 0, 2)736 def test_2_3(self):737 testSetSkeleton(self, 2, 3)738 def test_1_3(self):739 testSetSkeleton(self, 1, 3)740 def test_5_2(self):741 testSetSkeleton(self, 5, 2)742 def test_2_2(self):743 testSetSkeleton(self, 2, 2)744 745 746 class TestDFS_5x1(unittest.TestCase):747 strategies = list(DFSStrategy)748 padFile = "./testData/maps/rectangle/map5x1.txt" 749 def walkFunction(self):750 return dfs751 752 def test_1_0(self):753 testSetSkeleton(self, 1, 0)754 def test_0_0(self):755 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]756 testSetSkeleton(self, 0, 0, doNotTest)757 def test_2_0(self):758 testSetSkeleton(self, 2, 0)759 class TestDFS_1x5(unittest.TestCase):760 strategies = list(DFSStrategy)761 padFile = "./testData/maps/rectangle/map1x5.txt" 762 def walkFunction(self):763 return dfs764 765 def test_0_1(self):766 testSetSkeleton(self, 0, 1)767 def test_0_0(self):768 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]769 testSetSkeleton(self, 0, 0, doNotTest)770 def test_0_2(self):771 testSetSkeleton(self, 0, 2)772 class TestDFS_5x6(unittest.TestCase):773 strategies = list(DFSStrategy)774 padFile = "./testData/maps/rectangle/map5x6.txt" 775 def walkFunction(self):776 return dfs777 778 def test_1_2(self):779 testSetSkeleton(self, 1, 2)780 781 def test_0_1(self):782 testSetSkeleton(self, 0, 1)783 784 def test_1_0(self):785 testSetSkeleton(self, 1, 0)786 def test_0_0(self):787 testSetSkeleton(self, 0, 0)788 def test_2_0(self):789 testSetSkeleton(self, 2, 0)790 791 def test_0_2(self):792 testSetSkeleton(self, 0, 2)793 def test_2_3(self):794 testSetSkeleton(self, 2, 3)795 def test_1_3(self):796 testSetSkeleton(self, 1, 3)797 class TestDFS_2x2(unittest.TestCase):798 strategies = list(DFSStrategy)799 padFile = "./testData/maps/rectangle/map2x2.txt" 800 def walkFunction(self):801 return dfs802 def test_0_1(self):803 testSetSkeleton(self, 0, 1)804 805 def test_1_0(self):806 testSetSkeleton(self, 1, 0)807 def test_0_0(self):808 testSetSkeleton(self, 0, 0)809 class TestDFS_7x9(unittest.TestCase):810 strategies = list(DFSStrategy)811 padFile = "./testData/maps/rectangle/map7x9.txt" 812 def walkFunction(self):813 return dfs814 815 def test_1_2(self):816 testSetSkeleton(self, 1, 2)817 818 def test_0_1(self):819 testSetSkeleton(self, 0, 1)820 821 def test_1_0(self):822 testSetSkeleton(self, 1, 0)823 def test_0_0(self):824 testSetSkeleton(self, 0, 0)825 def test_2_0(self):826 testSetSkeleton(self, 2, 0)827 828 def test_0_2(self):829 testSetSkeleton(self, 0, 2)830 def test_2_3(self):831 testSetSkeleton(self, 2, 3)832 def test_1_3(self):833 testSetSkeleton(self, 1, 3)834 def test_5_2(self):835 testSetSkeleton(self, 5, 2)836 class TestDFS_9x4(unittest.TestCase):837 strategies = list(DFSStrategy)838 padFile = "./testData/maps/rectangle/map9x4.txt" 839 def walkFunction(self):840 return dfs841 842 def test_1_2(self):843 testSetSkeleton(self, 1, 2)844 845 def test_0_1(self):846 testSetSkeleton(self, 0, 1)847 848 def test_1_0(self):849 testSetSkeleton(self, 1, 0)850 def test_0_0(self):851 testSetSkeleton(self, 0, 0)852 def test_2_0(self):853 testSetSkeleton(self, 2, 0)854 855 def test_0_2(self):856 testSetSkeleton(self, 0, 2)857 def test_2_3(self):858 testSetSkeleton(self, 2, 3)859 def test_1_3(self):860 testSetSkeleton(self, 1, 3)861 def test_5_2(self):862 testSetSkeleton(self, 5, 2)863 def test_2_2(self):864 testSetSkeleton(self, 2, 2)865 866 class TestDFS_10x10(unittest.TestCase):867 strategies = list(DFSStrategy)868 padFile = "./testData/maps/rectangle/map10x10.txt" 869 def walkFunction(self):870 return dfs871 872 def test_1_2(self):873 testSetSkeleton(self, 1, 2)874 875 def test_0_1(self):876 testSetSkeleton(self, 0, 1)877 878 def test_1_0(self):879 testSetSkeleton(self, 1, 0)880 def test_0_0(self):881 testSetSkeleton(self, 0, 0)882 def test_2_0(self):883 testSetSkeleton(self, 2, 0)884 885 def test_0_2(self):886 testSetSkeleton(self, 0, 2)887 def test_2_3(self):888 testSetSkeleton(self, 2, 3)889 def test_1_3(self):890 testSetSkeleton(self, 1, 3)891 def test_5_2(self):892 testSetSkeleton(self, 5, 2)893 def test_2_5(self):894 testSetSkeleton(self, 2, 5)895 def test_5_5(self):896 testSetSkeleton(self, 5, 5)897 def test_2_2(self):898 testSetSkeleton(self, 2, 2)899 900 class TestDFS_6x4(unittest.TestCase):901 strategies = list(DFSStrategy)902 padFile = "./testData/maps/rectangle/map6x4.txt" 903 def walkFunction(self):904 return dfs905 906 def test_1_2(self):907 testSetSkeleton(self, 1, 2)908 909 def test_0_1(self):910 testSetSkeleton(self, 0, 1)911 912 def test_1_0(self):913 testSetSkeleton(self, 1, 0)914 def test_0_0(self):915 testSetSkeleton(self, 0, 0)916 def test_2_0(self):917 testSetSkeleton(self, 2, 0)918 919 def test_0_2(self):920 testSetSkeleton(self, 0, 2)921 def test_2_3(self):922 testSetSkeleton(self, 2, 3)923 def test_1_3(self):924 testSetSkeleton(self, 1, 3)925 def test_5_2(self):926 testSetSkeleton(self, 5, 2)927 def test_2_2(self):928 testSetSkeleton(self, 2, 2)929 930 931 class TestDFSLookWithBounds_5x1(unittest.TestCase):932 strategies = list(DFSStrategy)933 padFile = "./testData/maps/rectangle/map5x1.txt" 934 def walkFunction(self):935 return dfsLookWithBounds936 937 def test_1_0(self):938 testSetSkeleton(self, 1, 0)939 def test_0_0(self):940 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]941 testSetSkeleton(self, 0, 0, doNotTest)942 def test_2_0(self):943 testSetSkeleton(self, 2, 0)944 class TestDFSLookWithBounds_1x5(unittest.TestCase):945 strategies = list(DFSStrategy)946 padFile = "./testData/maps/rectangle/map1x5.txt" 947 def walkFunction(self):948 return dfsLookWithBounds949 950 def test_0_1(self):951 testSetSkeleton(self, 0, 1)952 def test_0_0(self):953 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]954 testSetSkeleton(self, 0, 0, doNotTest)955 def test_0_2(self):956 testSetSkeleton(self, 0, 2)957 class TestDFSLookWithBounds_5x6(unittest.TestCase):958 strategies = list(DFSStrategy)959 padFile = "./testData/maps/rectangle/map5x6.txt" 960 def walkFunction(self):961 return dfsLookWithBounds962 963 def test_1_2(self):964 testSetSkeleton(self, 1, 2)965 966 def test_0_1(self):967 testSetSkeleton(self, 0, 1)968 969 def test_1_0(self):970 testSetSkeleton(self, 1, 0)971 def test_0_0(self):972 testSetSkeleton(self, 0, 0)973 def test_2_0(self):974 testSetSkeleton(self, 2, 0)975 976 def test_0_2(self):977 testSetSkeleton(self, 0, 2)978 def test_2_3(self):979 testSetSkeleton(self, 2, 3)980 def test_1_3(self):981 testSetSkeleton(self, 1, 3)982 class TestDFSLookWithBounds_2x2(unittest.TestCase):983 strategies = list(DFSStrategy)984 padFile = "./testData/maps/rectangle/map2x2.txt" 985 def walkFunction(self):986 return dfsLookWithBounds987 def test_0_1(self):988 testSetSkeleton(self, 0, 1)989 990 def test_1_0(self):991 testSetSkeleton(self, 1, 0)992 def test_0_0(self):993 testSetSkeleton(self, 0, 0)994 class TestDFSLookWithBounds_7x9(unittest.TestCase):995 strategies = list(DFSStrategy)996 padFile = "./testData/maps/rectangle/map7x9.txt" 997 def walkFunction(self):998 return dfsLookWithBounds999 1000 def test_1_2(self):1001 testSetSkeleton(self, 1, 2)1002 1003 def test_0_1(self):1004 testSetSkeleton(self, 0, 1)1005 1006 def test_1_0(self):1007 testSetSkeleton(self, 1, 0)1008 def test_0_0(self):1009 testSetSkeleton(self, 0, 0)1010 def test_2_0(self):1011 testSetSkeleton(self, 2, 0)1012 1013 def test_0_2(self):1014 testSetSkeleton(self, 0, 2)1015 def test_2_3(self):1016 testSetSkeleton(self, 2, 3)1017 def test_1_3(self):1018 testSetSkeleton(self, 1, 3)1019 def test_5_2(self):1020 testSetSkeleton(self, 5, 2)1021 class TestDFSLookWithBounds_9x4(unittest.TestCase):1022 strategies = list(DFSStrategy)1023 padFile = "./testData/maps/rectangle/map9x4.txt" 1024 def walkFunction(self):1025 return dfsLookWithBounds1026 1027 def test_1_2(self):1028 testSetSkeleton(self, 1, 2)1029 1030 def test_0_1(self):1031 testSetSkeleton(self, 0, 1)1032 1033 def test_1_0(self):1034 testSetSkeleton(self, 1, 0)1035 def test_0_0(self):1036 testSetSkeleton(self, 0, 0)1037 def test_2_0(self):1038 testSetSkeleton(self, 2, 0)1039 1040 def test_0_2(self):1041 testSetSkeleton(self, 0, 2)1042 def test_2_3(self):1043 testSetSkeleton(self, 2, 3)1044 def test_1_3(self):1045 testSetSkeleton(self, 1, 3)1046 def test_5_2(self):1047 testSetSkeleton(self, 5, 2)1048 def test_2_2(self):1049 testSetSkeleton(self, 2, 2)1050 1051 class TestDFSLookWithBounds_10x10(unittest.TestCase):1052 strategies = list(DFSStrategy)1053 padFile = "./testData/maps/rectangle/map10x10.txt" 1054 def walkFunction(self):1055 return dfsLookWithBounds1056 1057 def test_1_2(self):1058 testSetSkeleton(self, 1, 2)1059 1060 def test_0_1(self):1061 testSetSkeleton(self, 0, 1)1062 1063 def test_1_0(self):1064 testSetSkeleton(self, 1, 0)1065 def test_0_0(self):1066 testSetSkeleton(self, 0, 0)1067 def test_2_0(self):1068 testSetSkeleton(self, 2, 0)1069 1070 def test_0_2(self):1071 testSetSkeleton(self, 0, 2)1072 def test_2_3(self):1073 testSetSkeleton(self, 2, 3)1074 def test_1_3(self):1075 testSetSkeleton(self, 1, 3)1076 def test_5_2(self):1077 testSetSkeleton(self, 5, 2)1078 def test_2_5(self):1079 testSetSkeleton(self, 2, 5)1080 def test_5_5(self):1081 testSetSkeleton(self, 5, 5)1082 def test_2_2(self):1083 testSetSkeleton(self, 2, 2)1084 1085 class TestDFSLookWithBounds_6x4(unittest.TestCase):1086 strategies = list(DFSStrategy)1087 padFile = "./testData/maps/rectangle/map6x4.txt" 1088 def walkFunction(self):1089 return dfsLookWithBounds1090 1091 def test_1_2(self):1092 testSetSkeleton(self, 1, 2)1093 1094 def test_0_1(self):1095 testSetSkeleton(self, 0, 1)1096 1097 def test_1_0(self):1098 testSetSkeleton(self, 1, 0)1099 def test_0_0(self):1100 testSetSkeleton(self, 0, 0)1101 def test_2_0(self):1102 testSetSkeleton(self, 2, 0)1103 1104 def test_0_2(self):1105 testSetSkeleton(self, 0, 2)1106 def test_2_3(self):1107 testSetSkeleton(self, 2, 3)1108 def test_1_3(self):1109 testSetSkeleton(self, 1, 3)1110 def test_5_2(self):1111 testSetSkeleton(self, 5, 2)1112 def test_2_2(self):1113 testSetSkeleton(self, 2, 2)1114 1115 1116 class TestDFSLook_5x1(unittest.TestCase):1117 strategies = list(DFSStrategy)1118 padFile = "./testData/maps/rectangle/map5x1.txt" 1119 def walkFunction(self):1120 return dfsLook1121 1122 def test_1_0(self):1123 testSetSkeleton(self, 1, 0)1124 def test_0_0(self):1125 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]1126 testSetSkeleton(self, 0, 0, doNotTest)1127 def test_2_0(self):1128 testSetSkeleton(self, 2, 0)1129 class TestDFSLook_1x5(unittest.TestCase):1130 strategies = list(DFSStrategy)1131 padFile = "./testData/maps/rectangle/map1x5.txt" 1132 def walkFunction(self):1133 return dfsLook1134 1135 def test_0_1(self):1136 testSetSkeleton(self, 0, 1)1137 def test_0_0(self):1138 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]1139 testSetSkeleton(self, 0, 0, doNotTest)1140 def test_0_2(self):1141 testSetSkeleton(self, 0, 2)1142 class TestDFSLook_5x6(unittest.TestCase):1143 strategies = list(DFSStrategy)1144 padFile = "./testData/maps/rectangle/map5x6.txt" 1145 def walkFunction(self):1146 return dfsLook1147 1148 def test_1_2(self):1149 testSetSkeleton(self, 1, 2)1150 1151 def test_0_1(self):1152 testSetSkeleton(self, 0, 1)1153 1154 def test_1_0(self):1155 testSetSkeleton(self, 1, 0)1156 def test_0_0(self):1157 testSetSkeleton(self, 0, 0)1158 def test_2_0(self):1159 testSetSkeleton(self, 2, 0)1160 1161 def test_0_2(self):1162 testSetSkeleton(self, 0, 2)1163 def test_2_3(self):1164 testSetSkeleton(self, 2, 3)1165 def test_1_3(self):1166 testSetSkeleton(self, 1, 3)1167 class TestDFSLook_2x2(unittest.TestCase):1168 strategies = list(DFSStrategy)1169 padFile = "./testData/maps/rectangle/map2x2.txt" 1170 def walkFunction(self):1171 return dfsLook1172 def test_0_1(self):1173 testSetSkeleton(self, 0, 1)1174 1175 def test_1_0(self):1176 testSetSkeleton(self, 1, 0)1177 def test_0_0(self):1178 testSetSkeleton(self, 0, 0)1179 class TestDFSLook_7x9(unittest.TestCase):1180 strategies = list(DFSStrategy)1181 padFile = "./testData/maps/rectangle/map7x9.txt" 1182 def walkFunction(self):1183 return dfsLook1184 1185 def test_1_2(self):1186 testSetSkeleton(self, 1, 2)1187 1188 def test_0_1(self):1189 testSetSkeleton(self, 0, 1)1190 1191 def test_1_0(self):1192 testSetSkeleton(self, 1, 0)1193 def test_0_0(self):1194 testSetSkeleton(self, 0, 0)1195 def test_2_0(self):1196 testSetSkeleton(self, 2, 0)1197 1198 def test_0_2(self):1199 testSetSkeleton(self, 0, 2)1200 def test_2_3(self):1201 testSetSkeleton(self, 2, 3)1202 def test_1_3(self):1203 testSetSkeleton(self, 1, 3)1204 def test_5_2(self):1205 testSetSkeleton(self, 5, 2)1206 class TestDFSLook_9x4(unittest.TestCase):1207 strategies = list(DFSStrategy)1208 padFile = "./testData/maps/rectangle/map9x4.txt" 1209 def walkFunction(self):1210 return dfsLook1211 1212 def test_1_2(self):1213 testSetSkeleton(self, 1, 2)1214 1215 def test_0_1(self):1216 testSetSkeleton(self, 0, 1)1217 1218 def test_1_0(self):1219 testSetSkeleton(self, 1, 0)1220 def test_0_0(self):1221 testSetSkeleton(self, 0, 0)1222 def test_2_0(self):1223 testSetSkeleton(self, 2, 0)1224 1225 def test_0_2(self):1226 testSetSkeleton(self, 0, 2)1227 def test_2_3(self):1228 testSetSkeleton(self, 2, 3)1229 def test_1_3(self):1230 testSetSkeleton(self, 1, 3)1231 def test_5_2(self):1232 testSetSkeleton(self, 5, 2)1233 def test_2_2(self):1234 testSetSkeleton(self, 2, 2)1235 1236 class TestDFSLook_10x10(unittest.TestCase):1237 strategies = list(DFSStrategy)1238 padFile = "./testData/maps/rectangle/map10x10.txt" 1239 def walkFunction(self):1240 return dfsLook1241 1242 def test_1_2(self):1243 testSetSkeleton(self, 1, 2)1244 1245 def test_0_1(self):1246 testSetSkeleton(self, 0, 1)1247 1248 def test_1_0(self):1249 testSetSkeleton(self, 1, 0)1250 def test_0_0(self):1251 testSetSkeleton(self, 0, 0)1252 def test_2_0(self):1253 testSetSkeleton(self, 2, 0)1254 1255 def test_0_2(self):1256 testSetSkeleton(self, 0, 2)1257 def test_2_3(self):1258 testSetSkeleton(self, 2, 3)1259 def test_1_3(self):1260 testSetSkeleton(self, 1, 3)1261 def test_5_2(self):1262 testSetSkeleton(self, 5, 2)1263 def test_2_5(self):1264 testSetSkeleton(self, 2, 5)1265 def test_5_5(self):1266 testSetSkeleton(self, 5, 5)1267 def test_2_2(self):1268 testSetSkeleton(self, 2, 2)1269 1270 class TestDFSLook_6x4(unittest.TestCase):1271 strategies = list(DFSStrategy)1272 padFile = "./testData/maps/rectangle/map6x4.txt" 1273 def walkFunction(self):1274 return dfsLook1275 1276 def test_1_2(self):1277 testSetSkeleton(self, 1, 2)1278 1279 def test_0_1(self):1280 testSetSkeleton(self, 0, 1)1281 1282 def test_1_0(self):1283 testSetSkeleton(self, 1, 0)1284 def test_0_0(self):1285 testSetSkeleton(self, 0, 0)1286 def test_2_0(self):1287 testSetSkeleton(self, 2, 0)1288 1289 def test_0_2(self):1290 testSetSkeleton(self, 0, 2)1291 def test_2_3(self):1292 testSetSkeleton(self, 2, 3)1293 def test_1_3(self):1294 testSetSkeleton(self, 1, 3)1295 def test_5_2(self):1296 testSetSkeleton(self, 5, 2)1297 def test_2_2(self):1298 testSetSkeleton(self, 2, 2)1299 1300 1301 class TestShortestBacktrack_5x1(unittest.TestCase):1302 strategies = list(BacktrackStrategy)1303 padFile = "./testData/maps/rectangle/map5x1.txt" 1304 def walkFunction(self):1305 return shortestBacktrack1306 1307 def test_1_0(self):1308 testSetSkeleton(self, 1, 0)1309 def test_0_0(self):1310 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]1311 testSetSkeleton(self, 0, 0, doNotTest)1312 def test_2_0(self):1313 testSetSkeleton(self, 2, 0)1314 class TestShortestBacktrack_1x5(unittest.TestCase):1315 strategies = list(BacktrackStrategy)1316 padFile = "./testData/maps/rectangle/map1x5.txt" 1317 def walkFunction(self):1318 return shortestBacktrack1319 1320 def test_0_1(self):1321 testSetSkeleton(self, 0, 1)1322 def test_0_0(self):1323 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]1324 testSetSkeleton(self, 0, 0, doNotTest)1325 def test_0_2(self):1326 testSetSkeleton(self, 0, 2)1327 class TestShortestBacktrack_5x6(unittest.TestCase):1328 strategies = list(BacktrackStrategy)1329 padFile = "./testData/maps/rectangle/map5x6.txt" 1330 def walkFunction(self):1331 return shortestBacktrack1332 1333 def test_1_2(self):1334 testSetSkeleton(self, 1, 2)1335 1336 def test_0_1(self):1337 testSetSkeleton(self, 0, 1)1338 1339 def test_1_0(self):1340 testSetSkeleton(self, 1, 0)1341 def test_0_0(self):1342 testSetSkeleton(self, 0, 0)1343 def test_2_0(self):1344 testSetSkeleton(self, 2, 0)1345 1346 def test_0_2(self):1347 testSetSkeleton(self, 0, 2)1348 def test_2_3(self):1349 testSetSkeleton(self, 2, 3)1350 def test_1_3(self):1351 testSetSkeleton(self, 1, 3)1352 class TestShortestBacktrack_2x2(unittest.TestCase):1353 strategies = list(BacktrackStrategy)1354 padFile = "./testData/maps/rectangle/map2x2.txt" 1355 def walkFunction(self):1356 return shortestBacktrack1357 def test_0_1(self):1358 testSetSkeleton(self, 0, 1)1359 1360 def test_1_0(self):1361 testSetSkeleton(self, 1, 0)1362 def test_0_0(self):1363 testSetSkeleton(self, 0, 0)1364 class TestShortestBacktrack_7x9(unittest.TestCase):1365 strategies = list(BacktrackStrategy)1366 padFile = "./testData/maps/rectangle/map7x9.txt" 1367 def walkFunction(self):1368 return shortestBacktrack1369 1370 def test_1_2(self):1371 testSetSkeleton(self, 1, 2)1372 1373 def test_0_1(self):1374 testSetSkeleton(self, 0, 1)1375 1376 def test_1_0(self):1377 testSetSkeleton(self, 1, 0)1378 def test_0_0(self):1379 testSetSkeleton(self, 0, 0)1380 def test_2_0(self):1381 testSetSkeleton(self, 2, 0)1382 1383 def test_0_2(self):1384 testSetSkeleton(self, 0, 2)1385 def test_2_3(self):1386 testSetSkeleton(self, 2, 3)1387 def test_1_3(self):1388 testSetSkeleton(self, 1, 3)1389 def test_5_2(self):1390 testSetSkeleton(self, 5, 2)1391 class TestShortestBacktrack_9x4(unittest.TestCase):1392 strategies = list(BacktrackStrategy)1393 padFile = "./testData/maps/rectangle/map9x4.txt" 1394 def walkFunction(self):1395 return shortestBacktrack1396 1397 def test_1_2(self):1398 testSetSkeleton(self, 1, 2)1399 1400 def test_0_1(self):1401 testSetSkeleton(self, 0, 1)1402 1403 def test_1_0(self):1404 testSetSkeleton(self, 1, 0)1405 def test_0_0(self):1406 testSetSkeleton(self, 0, 0)1407 def test_2_0(self):1408 testSetSkeleton(self, 2, 0)1409 1410 def test_0_2(self):1411 testSetSkeleton(self, 0, 2)1412 def test_2_3(self):1413 testSetSkeleton(self, 2, 3)1414 def test_1_3(self):1415 testSetSkeleton(self, 1, 3)1416 def test_5_2(self):1417 testSetSkeleton(self, 5, 2)1418 def test_2_2(self):1419 testSetSkeleton(self, 2, 2)1420 1421 class TestShortestBacktrack_10x10(unittest.TestCase):1422 strategies = list(BacktrackStrategy)1423 padFile = "./testData/maps/rectangle/map10x10.txt" 1424 def walkFunction(self):1425 return shortestBacktrack1426 1427 def test_1_2(self):1428 testSetSkeleton(self, 1, 2)1429 1430 def test_0_1(self):1431 testSetSkeleton(self, 0, 1)1432 1433 def test_1_0(self):1434 testSetSkeleton(self, 1, 0)1435 def test_0_0(self):1436 testSetSkeleton(self, 0, 0)1437 def test_2_0(self):1438 testSetSkeleton(self, 2, 0)1439 1440 def test_0_2(self):1441 testSetSkeleton(self, 0, 2)1442 def test_2_3(self):1443 testSetSkeleton(self, 2, 3)1444 def test_1_3(self):1445 testSetSkeleton(self, 1, 3)1446 def test_5_2(self):1447 testSetSkeleton(self, 5, 2)1448 def test_2_5(self):1449 testSetSkeleton(self, 2, 5)1450 def test_5_5(self):1451 testSetSkeleton(self, 5, 5)1452 def test_2_2(self):1453 testSetSkeleton(self, 2, 2)1454 1455 class TestShortestBacktrack_6x4(unittest.TestCase):1456 strategies = list(BacktrackStrategy)1457 padFile = "./testData/maps/rectangle/map6x4.txt" 1458 def walkFunction(self):1459 return shortestBacktrack1460 1461 def test_1_2(self):1462 testSetSkeleton(self, 1, 2)1463 1464 def test_0_1(self):1465 testSetSkeleton(self, 0, 1)1466 1467 def test_1_0(self):1468 testSetSkeleton(self, 1, 0)1469 def test_0_0(self):1470 testSetSkeleton(self, 0, 0)1471 def test_2_0(self):1472 testSetSkeleton(self, 2, 0)1473 1474 def test_0_2(self):1475 testSetSkeleton(self, 0, 2)1476 def test_2_3(self):1477 testSetSkeleton(self, 2, 3)1478 def test_1_3(self):1479 testSetSkeleton(self, 1, 3)1480 def test_5_2(self):1481 testSetSkeleton(self, 5, 2)1482 def test_2_2(self):1483 testSetSkeleton(self, 2, 2)1484 1485 1486 class TestShortestBacktrackLook_5x1(unittest.TestCase):1487 strategies = list(BacktrackStrategy)1488 padFile = "./testData/maps/rectangle/map5x1.txt" 1489 def walkFunction(self):1490 return shortestBacktrackLook1491 1492 def test_1_0(self):1493 testSetSkeleton(self, 1, 0)1494 def test_0_0(self):1495 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]1496 testSetSkeleton(self, 0, 0, doNotTest)1497 def test_2_0(self):1498 testSetSkeleton(self, 2, 0)1499 class TestShortestBacktrackLook_1x5(unittest.TestCase):1500 strategies = list(BacktrackStrategy)1501 padFile = "./testData/maps/rectangle/map1x5.txt" 1502 def walkFunction(self):1503 return shortestBacktrackLook1504 1505 def test_0_1(self):1506 testSetSkeleton(self, 0, 1)1507 def test_0_0(self):1508 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]1509 testSetSkeleton(self, 0, 0, doNotTest)1510 def test_0_2(self):1511 testSetSkeleton(self, 0, 2)1512 class TestShortestBacktrackLook_5x6(unittest.TestCase):1513 strategies = list(BacktrackStrategy)1514 padFile = "./testData/maps/rectangle/map5x6.txt" 1515 def walkFunction(self):1516 return shortestBacktrackLook1517 1518 def test_1_2(self):1519 testSetSkeleton(self, 1, 2)1520 1521 def test_0_1(self):1522 testSetSkeleton(self, 0, 1)1523 1524 def test_1_0(self):1525 testSetSkeleton(self, 1, 0)1526 def test_0_0(self):1527 testSetSkeleton(self, 0, 0)1528 def test_2_0(self):1529 testSetSkeleton(self, 2, 0)1530 1531 def test_0_2(self):1532 testSetSkeleton(self, 0, 2)1533 def test_2_3(self):1534 testSetSkeleton(self, 2, 3)1535 def test_1_3(self):1536 testSetSkeleton(self, 1, 3)1537 class TestShortestBacktrackLook_2x2(unittest.TestCase):1538 strategies = list(BacktrackStrategy)1539 padFile = "./testData/maps/rectangle/map2x2.txt" 1540 def walkFunction(self):1541 return shortestBacktrackLook1542 def test_0_1(self):1543 testSetSkeleton(self, 0, 1)1544 1545 def test_1_0(self):1546 testSetSkeleton(self, 1, 0)1547 def test_0_0(self):1548 testSetSkeleton(self, 0, 0)1549 class TestShortestBacktrackLook_7x9(unittest.TestCase):1550 strategies = list(BacktrackStrategy)1551 padFile = "./testData/maps/rectangle/map7x9.txt" 1552 def walkFunction(self):1553 return shortestBacktrackLook1554 1555 def test_1_2(self):1556 testSetSkeleton(self, 1, 2)1557 1558 def test_0_1(self):1559 testSetSkeleton(self, 0, 1)1560 1561 def test_1_0(self):1562 testSetSkeleton(self, 1, 0)1563 def test_0_0(self):1564 testSetSkeleton(self, 0, 0)1565 def test_2_0(self):1566 testSetSkeleton(self, 2, 0)1567 1568 def test_0_2(self):1569 testSetSkeleton(self, 0, 2)1570 def test_2_3(self):1571 testSetSkeleton(self, 2, 3)1572 def test_1_3(self):1573 testSetSkeleton(self, 1, 3)1574 def test_5_2(self):1575 testSetSkeleton(self, 5, 2)1576 class TestShortestBacktrackLook_9x4(unittest.TestCase):1577 strategies = list(BacktrackStrategy)1578 padFile = "./testData/maps/rectangle/map9x4.txt" 1579 def walkFunction(self):1580 return shortestBacktrackLook1581 1582 def test_1_2(self):1583 testSetSkeleton(self, 1, 2)1584 1585 def test_0_1(self):1586 testSetSkeleton(self, 0, 1)1587 1588 def test_1_0(self):1589 testSetSkeleton(self, 1, 0)1590 def test_0_0(self):1591 testSetSkeleton(self, 0, 0)1592 def test_2_0(self):1593 testSetSkeleton(self, 2, 0)1594 1595 def test_0_2(self):1596 testSetSkeleton(self, 0, 2)1597 def test_2_3(self):1598 testSetSkeleton(self, 2, 3)1599 def test_1_3(self):1600 testSetSkeleton(self, 1, 3)1601 def test_5_2(self):1602 testSetSkeleton(self, 5, 2)1603 def test_2_2(self):1604 testSetSkeleton(self, 2, 2)1605 1606 class TestShortestBacktrackLook_10x10(unittest.TestCase):1607 strategies = list(BacktrackStrategy)1608 padFile = "./testData/maps/rectangle/map10x10.txt" 1609 def walkFunction(self):1610 return shortestBacktrackLook1611 1612 def test_1_2(self):1613 testSetSkeleton(self, 1, 2)1614 1615 def test_0_1(self):1616 testSetSkeleton(self, 0, 1)1617 1618 def test_1_0(self):1619 testSetSkeleton(self, 1, 0)1620 def test_0_0(self):1621 testSetSkeleton(self, 0, 0)1622 def test_2_0(self):1623 testSetSkeleton(self, 2, 0)1624 1625 def test_0_2(self):1626 testSetSkeleton(self, 0, 2)1627 def test_2_3(self):1628 testSetSkeleton(self, 2, 3)1629 def test_1_3(self):1630 testSetSkeleton(self, 1, 3)1631 def test_5_2(self):1632 testSetSkeleton(self, 5, 2)1633 def test_2_5(self):1634 testSetSkeleton(self, 2, 5)1635 def test_5_5(self):1636 testSetSkeleton(self, 5, 5)1637 def test_2_2(self):1638 testSetSkeleton(self, 2, 2)1639 1640 class TestShortestBacktrackLook_6x4(unittest.TestCase):1641 strategies = list(BacktrackStrategy)1642 padFile = "./testData/maps/rectangle/map6x4.txt" 1643 def walkFunction(self):1644 return shortestBacktrackLook1645 1646 def test_1_2(self):1647 testSetSkeleton(self, 1, 2)1648 1649 def test_0_1(self):1650 testSetSkeleton(self, 0, 1)1651 1652 def test_1_0(self):1653 testSetSkeleton(self, 1, 0)1654 def test_0_0(self):1655 testSetSkeleton(self, 0, 0)1656 def test_2_0(self):1657 testSetSkeleton(self, 2, 0)1658 1659 def test_0_2(self):1660 testSetSkeleton(self, 0, 2)1661 def test_2_3(self):1662 testSetSkeleton(self, 2, 3)1663 def test_1_3(self):1664 testSetSkeleton(self, 1, 3)1665 def test_5_2(self):1666 testSetSkeleton(self, 5, 2)1667 def test_2_2(self):1668 testSetSkeleton(self, 2, 2)1669 1670# End test rectangle pads1671# Test pads with one hole1672if (True):1673 class TestDFS_5x6_1_oneHole(unittest.TestCase):1674 strategies = list(DFSStrategy)1675 padFile = "./testData/maps/singleHole/map5x6_1.txt" 1676 def walkFunction(self):1677 return dfs1678 1679 def test_1_2(self):1680 testSetSkeleton(self, 1, 2)1681 def test_1_2(self):1682 testSetSkeleton(self, 1, 2)1683 1684 def test_0_1(self):1685 testSetSkeleton(self, 0, 1)1686 1687 """1688 def test_1_0(self):1689 testSetSkeleton(self, 1, 0)1690 """1691 def test_0_0(self):1692 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]1693 testSetSkeleton(self, 0, 0, doNotTest)1694 1695 def test_2_0(self):1696 testSetSkeleton(self, 2, 0)1697 1698 def test_0_2(self):1699 testSetSkeleton(self, 0, 2)1700 def test_2_3(self):1701 testSetSkeleton(self, 2, 3)1702 def test_1_3(self):1703 testSetSkeleton(self, 1, 3)1704 class TestDFS_5x6_2_oneHole(unittest.TestCase):1705 strategies = list(DFSStrategy)1706 padFile = "./testData/maps/singleHole/map5x6_2.txt" 1707 def walkFunction(self):1708 return dfs1709 1710 def test_1_2(self):1711 testSetSkeleton(self, 1, 2)1712 def test_1_2(self):1713 testSetSkeleton(self, 1, 2)1714 1715 def test_0_1(self):1716 testSetSkeleton(self, 0, 1)1717 1718 def test_1_0(self):1719 testSetSkeleton(self, 1, 0)1720 def test_0_0(self):1721 testSetSkeleton(self, 0, 0)1722 1723 def test_2_0(self):1724 testSetSkeleton(self, 2, 0)1725 1726 def test_0_2(self):1727 testSetSkeleton(self, 0, 2)1728 def test_2_3(self):1729 testSetSkeleton(self, 2, 3)1730 def test_1_3(self):1731 testSetSkeleton(self, 1, 3)1732 class TestDFS_5x6_3_oneHole(unittest.TestCase):1733 strategies = list(DFSStrategy)1734 padFile = "./testData/maps/singleHole/map5x6_3.txt" 1735 def walkFunction(self):1736 return dfs1737 1738 def test_1_2(self):1739 testSetSkeleton(self, 1, 2)1740 def test_1_2(self):1741 testSetSkeleton(self, 1, 2)1742 1743 """1744 def test_0_1(self):1745 testSetSkeleton(self, 0, 1)1746 """1747 def test_1_0(self):1748 testSetSkeleton(self, 1, 0)1749 def test_0_0(self):1750 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]1751 testSetSkeleton(self, 0, 0, doNotTest)1752 1753 def test_2_0(self):1754 testSetSkeleton(self, 2, 0)1755 1756 def test_0_2(self):1757 testSetSkeleton(self, 0, 2)1758 def test_2_3(self):1759 testSetSkeleton(self, 2, 3)1760 def test_1_3(self):1761 testSetSkeleton(self, 1, 3)1762 class TestDFS_5x6_4_oneHole(unittest.TestCase):1763 strategies = list(DFSStrategy)1764 padFile = "./testData/maps/singleHole/map5x6_4.txt" 1765 def walkFunction(self):1766 return dfs1767 1768 def test_1_2(self):1769 testSetSkeleton(self, 1, 2)1770 def test_1_2(self):1771 testSetSkeleton(self, 1, 2)1772 1773 def test_0_1(self):1774 testSetSkeleton(self, 0, 1)1775 1776 def test_1_0(self):1777 testSetSkeleton(self, 1, 0)1778 def test_0_0(self):1779 testSetSkeleton(self, 0, 0)1780 1781 def test_2_0(self):1782 testSetSkeleton(self, 2, 0)1783 1784 def test_0_2(self):1785 testSetSkeleton(self, 0, 2)1786 def test_2_2(self):1787 testSetSkeleton(self, 2, 2)1788 1789 def test_3_2(self):1790 testSetSkeleton(self, 3, 2)1791 def test_1_3(self):1792 testSetSkeleton(self, 1, 3)1793 class TestDFSLook_5x6_1_oneHole(unittest.TestCase):1794 strategies = list(DFSStrategy)1795 padFile = "./testData/maps/singleHole/map5x6_1.txt" 1796 def walkFunction(self):1797 return dfsLook1798 1799 def test_1_2(self):1800 testSetSkeleton(self, 1, 2)1801 def test_1_2(self):1802 testSetSkeleton(self, 1, 2)1803 1804 def test_0_1(self):1805 testSetSkeleton(self, 0, 1)1806 1807 """1808 def test_1_0(self):1809 testSetSkeleton(self, 1, 0)1810 """1811 def test_0_0(self):1812 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]1813 testSetSkeleton(self, 0, 0, doNotTest)1814 1815 def test_2_0(self):1816 testSetSkeleton(self, 2, 0)1817 1818 def test_0_2(self):1819 testSetSkeleton(self, 0, 2)1820 def test_2_3(self):1821 testSetSkeleton(self, 2, 3)1822 def test_1_3(self):1823 testSetSkeleton(self, 1, 3)1824 class TestDFSLook_5x6_2_oneHole(unittest.TestCase):1825 strategies = list(DFSStrategy)1826 padFile = "./testData/maps/singleHole/map5x6_2.txt" 1827 def walkFunction(self):1828 return dfsLook1829 1830 def test_1_2(self):1831 testSetSkeleton(self, 1, 2)1832 def test_1_2(self):1833 testSetSkeleton(self, 1, 2)1834 1835 def test_0_1(self):1836 testSetSkeleton(self, 0, 1)1837 1838 def test_1_0(self):1839 testSetSkeleton(self, 1, 0)1840 def test_0_0(self):1841 testSetSkeleton(self, 0, 0)1842 1843 def test_2_0(self):1844 testSetSkeleton(self, 2, 0)1845 1846 def test_0_2(self):1847 testSetSkeleton(self, 0, 2)1848 def test_2_3(self):1849 testSetSkeleton(self, 2, 3)1850 def test_1_3(self):1851 testSetSkeleton(self, 1, 3)1852 class TestDFSLook_5x6_3_oneHole(unittest.TestCase):1853 strategies = list(DFSStrategy)1854 padFile = "./testData/maps/singleHole/map5x6_3.txt" 1855 def walkFunction(self):1856 return dfsLook1857 1858 def test_1_2(self):1859 testSetSkeleton(self, 1, 2)1860 def test_1_2(self):1861 testSetSkeleton(self, 1, 2)1862 1863 """1864 def test_0_1(self):1865 testSetSkeleton(self, 0, 1)1866 """1867 def test_1_0(self):1868 testSetSkeleton(self, 1, 0)1869 def test_0_0(self):1870 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]1871 testSetSkeleton(self, 0, 0, doNotTest)1872 1873 def test_2_0(self):1874 testSetSkeleton(self, 2, 0)1875 1876 def test_0_2(self):1877 testSetSkeleton(self, 0, 2)1878 def test_2_3(self):1879 testSetSkeleton(self, 2, 3)1880 def test_1_3(self):1881 testSetSkeleton(self, 1, 3)1882 class TestDFSLook_5x6_4_oneHole(unittest.TestCase):1883 strategies = list(DFSStrategy)1884 padFile = "./testData/maps/singleHole/map5x6_4.txt" 1885 def walkFunction(self):1886 return dfsLook1887 1888 def test_1_2(self):1889 testSetSkeleton(self, 1, 2)1890 def test_1_2(self):1891 testSetSkeleton(self, 1, 2)1892 1893 def test_0_1(self):1894 testSetSkeleton(self, 0, 1)1895 1896 def test_1_0(self):1897 testSetSkeleton(self, 1, 0)1898 def test_0_0(self):1899 testSetSkeleton(self, 0, 0)1900 1901 def test_2_0(self):1902 testSetSkeleton(self, 2, 0)1903 1904 def test_0_2(self):1905 testSetSkeleton(self, 0, 2)1906 def test_2_2(self):1907 testSetSkeleton(self, 2, 2)1908 1909 def test_3_2(self):1910 testSetSkeleton(self, 3, 2)1911 def test_1_3(self):1912 testSetSkeleton(self, 1, 3)1913 class TestShortestBacktrack_5x6_1_oneHole(unittest.TestCase):1914 strategies = list(BacktrackStrategy)1915 padFile = "./testData/maps/singleHole/map5x6_1.txt" 1916 def walkFunction(self):1917 return shortestBacktrack1918 1919 def test_1_2(self):1920 testSetSkeleton(self, 1, 2)1921 def test_1_2(self):1922 testSetSkeleton(self, 1, 2)1923 1924 def test_0_1(self):1925 testSetSkeleton(self, 0, 1)1926 1927 """1928 def test_1_0(self):1929 testSetSkeleton(self, 1, 0)1930 """1931 def test_0_0(self):1932 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]1933 testSetSkeleton(self, 0, 0, doNotTest)1934 1935 def test_2_0(self):1936 testSetSkeleton(self, 2, 0)1937 1938 def test_0_2(self):1939 testSetSkeleton(self, 0, 2)1940 def test_2_3(self):1941 testSetSkeleton(self, 2, 3)1942 def test_1_3(self):1943 testSetSkeleton(self, 1, 3)1944 class TestShortestBacktrack_5x6_2_oneHole(unittest.TestCase):1945 strategies = list(BacktrackStrategy)1946 padFile = "./testData/maps/singleHole/map5x6_2.txt" 1947 def walkFunction(self):1948 return shortestBacktrack1949 1950 def test_1_2(self):1951 testSetSkeleton(self, 1, 2)1952 def test_1_2(self):1953 testSetSkeleton(self, 1, 2)1954 1955 def test_0_1(self):1956 testSetSkeleton(self, 0, 1)1957 1958 def test_1_0(self):1959 testSetSkeleton(self, 1, 0)1960 def test_0_0(self):1961 testSetSkeleton(self, 0, 0)1962 1963 def test_2_0(self):1964 testSetSkeleton(self, 2, 0)1965 1966 def test_0_2(self):1967 testSetSkeleton(self, 0, 2)1968 def test_2_3(self):1969 testSetSkeleton(self, 2, 3)1970 def test_1_3(self):1971 testSetSkeleton(self, 1, 3)1972 class TestShortestBacktrack_5x6_3_oneHole(unittest.TestCase):1973 strategies = list(BacktrackStrategy)1974 padFile = "./testData/maps/singleHole/map5x6_3.txt" 1975 def walkFunction(self):1976 return shortestBacktrack1977 1978 def test_1_2(self):1979 testSetSkeleton(self, 1, 2)1980 def test_1_2(self):1981 testSetSkeleton(self, 1, 2)1982 1983 """1984 def test_0_1(self):1985 testSetSkeleton(self, 0, 1)1986 """1987 def test_1_0(self):1988 testSetSkeleton(self, 1, 0)1989 def test_0_0(self):1990 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]1991 testSetSkeleton(self, 0, 0, doNotTest)1992 1993 def test_2_0(self):1994 testSetSkeleton(self, 2, 0)1995 1996 def test_0_2(self):1997 testSetSkeleton(self, 0, 2)1998 def test_2_3(self):1999 testSetSkeleton(self, 2, 3)2000 def test_1_3(self):2001 testSetSkeleton(self, 1, 3)2002 class TestShortestBacktrack_5x6_4_oneHole(unittest.TestCase):2003 strategies = list(BacktrackStrategy)2004 padFile = "./testData/maps/singleHole/map5x6_4.txt" 2005 def walkFunction(self):2006 return shortestBacktrack2007 2008 def test_1_2(self):2009 testSetSkeleton(self, 1, 2)2010 def test_1_2(self):2011 testSetSkeleton(self, 1, 2)2012 2013 def test_0_1(self):2014 testSetSkeleton(self, 0, 1)2015 2016 def test_1_0(self):2017 testSetSkeleton(self, 1, 0)2018 def test_0_0(self):2019 testSetSkeleton(self, 0, 0)2020 2021 def test_2_0(self):2022 testSetSkeleton(self, 2, 0)2023 2024 def test_0_2(self):2025 testSetSkeleton(self, 0, 2)2026 def test_2_2(self):2027 testSetSkeleton(self, 2, 2)2028 2029 def test_3_2(self):2030 testSetSkeleton(self, 3, 2)2031 def test_1_3(self):2032 testSetSkeleton(self, 1, 3)2033 class TestShortestBacktrackLook_5x6_1_oneHole(unittest.TestCase):2034 strategies = list(BacktrackStrategy)2035 padFile = "./testData/maps/singleHole/map5x6_1.txt" 2036 def walkFunction(self):2037 return shortestBacktrackLook2038 2039 def test_1_2(self):2040 testSetSkeleton(self, 1, 2)2041 def test_1_2(self):2042 testSetSkeleton(self, 1, 2)2043 2044 def test_0_1(self):2045 testSetSkeleton(self, 0, 1)2046 2047 """2048 def test_1_0(self):2049 testSetSkeleton(self, 1, 0)2050 """2051 def test_0_0(self):2052 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]2053 testSetSkeleton(self, 0, 0, doNotTest)2054 2055 def test_2_0(self):2056 testSetSkeleton(self, 2, 0)2057 2058 def test_0_2(self):2059 testSetSkeleton(self, 0, 2)2060 def test_2_3(self):2061 testSetSkeleton(self, 2, 3)2062 def test_1_3(self):2063 testSetSkeleton(self, 1, 3)2064 class TestShortestBacktrackLook_5x6_2_oneHole(unittest.TestCase):2065 strategies = list(BacktrackStrategy)2066 padFile = "./testData/maps/singleHole/map5x6_2.txt" 2067 def walkFunction(self):2068 return shortestBacktrackLook2069 2070 def test_1_2(self):2071 testSetSkeleton(self, 1, 2)2072 def test_1_2(self):2073 testSetSkeleton(self, 1, 2)2074 2075 def test_0_1(self):2076 testSetSkeleton(self, 0, 1)2077 2078 def test_1_0(self):2079 testSetSkeleton(self, 1, 0)2080 def test_0_0(self):2081 testSetSkeleton(self, 0, 0)2082 2083 def test_2_0(self):2084 testSetSkeleton(self, 2, 0)2085 2086 def test_0_2(self):2087 testSetSkeleton(self, 0, 2)2088 def test_2_3(self):2089 testSetSkeleton(self, 2, 3)2090 def test_1_3(self):2091 testSetSkeleton(self, 1, 3)2092 class TestShortestBacktrackLook_5x6_3_oneHole(unittest.TestCase):2093 strategies = list(BacktrackStrategy)2094 padFile = "./testData/maps/singleHole/map5x6_3.txt" 2095 def walkFunction(self):2096 return shortestBacktrackLook2097 2098 def test_1_2(self):2099 testSetSkeleton(self, 1, 2)2100 def test_1_2(self):2101 testSetSkeleton(self, 1, 2)2102 2103 """2104 def test_0_1(self):2105 testSetSkeleton(self, 0, 1)2106 """2107 def test_1_0(self):2108 testSetSkeleton(self, 1, 0)2109 def test_0_0(self):2110 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]2111 testSetSkeleton(self, 0, 0, doNotTest)2112 2113 def test_2_0(self):2114 testSetSkeleton(self, 2, 0)2115 2116 def test_0_2(self):2117 testSetSkeleton(self, 0, 2)2118 def test_2_3(self):2119 testSetSkeleton(self, 2, 3)2120 def test_1_3(self):2121 testSetSkeleton(self, 1, 3)2122 class TestShortestBacktrackLook_5x6_4_oneHole(unittest.TestCase):2123 strategies = list(BacktrackStrategy)2124 padFile = "./testData/maps/singleHole/map5x6_4.txt" 2125 def walkFunction(self):2126 return shortestBacktrackLook2127 2128 def test_1_2(self):2129 testSetSkeleton(self, 1, 2)2130 def test_1_2(self):2131 testSetSkeleton(self, 1, 2)2132 2133 def test_0_1(self):2134 testSetSkeleton(self, 0, 1)2135 2136 def test_1_0(self):2137 testSetSkeleton(self, 1, 0)2138 def test_0_0(self):2139 testSetSkeleton(self, 0, 0)2140 2141 def test_2_0(self):2142 testSetSkeleton(self, 2, 0)2143 2144 def test_0_2(self):2145 testSetSkeleton(self, 0, 2)2146 def test_2_2(self):2147 testSetSkeleton(self, 2, 2)2148 2149 def test_3_2(self):2150 testSetSkeleton(self, 3, 2)2151 def test_1_3(self):2152 testSetSkeleton(self, 1, 3)2153 class TestDFS_2x2_1(unittest.TestCase):2154 strategies = list(DFSStrategy)2155 padFile = "./testData/maps/singleHole/map2x2_1.txt" 2156 def walkFunction(self):2157 return dfs2158 """2159 def test_0_1(self):2160 testSetSkeleton(self, 0, 1)2161 """2162 def test_1_0(self):2163 testSetSkeleton(self, 1, 0)2164 def test_0_0(self):2165 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] 2166 testSetSkeleton(self, 0, 0, doNotTest)2167 class TestDFS_2x2_2(unittest.TestCase):2168 strategies = list(DFSStrategy)2169 padFile = "./testData/maps/singleHole/map2x2_2.txt" 2170 def walkFunction(self):2171 return dfs2172 2173 def test_0_1(self):2174 testSetSkeleton(self, 0, 1)2175 """2176 def test_1_0(self):2177 testSetSkeleton(self, 1, 0)2178 """2179 def test_0_0(self):2180 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]2181 testSetSkeleton(self, 0, 0, doNotTest)2182 class TestDFSLook_2x2_1(unittest.TestCase):2183 strategies = list(DFSStrategy)2184 padFile = "./testData/maps/singleHole/map2x2_1.txt" 2185 def walkFunction(self):2186 return dfsLook2187 """2188 def test_0_1(self):2189 testSetSkeleton(self, 0, 1)2190 """2191 def test_1_0(self):2192 testSetSkeleton(self, 1, 0)2193 def test_0_0(self):2194 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]2195 testSetSkeleton(self, 0, 0, doNotTest)2196 class TestDFSLook_2x2_2(unittest.TestCase):2197 strategies = list(DFSStrategy)2198 padFile = "./testData/maps/singleHole/map2x2_2.txt" 2199 def walkFunction(self):2200 return dfsLook2201 2202 def test_0_1(self):2203 testSetSkeleton(self, 0, 1)2204 """2205 def test_1_0(self):2206 testSetSkeleton(self, 1, 0)2207 """2208 def test_0_0(self):2209 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]2210 testSetSkeleton(self, 0, 0, doNotTest)2211 class TestShortestBacktrack_2x2_1(unittest.TestCase):2212 strategies = list(BacktrackStrategy)2213 padFile = "./testData/maps/singleHole/map2x2_1.txt" 2214 def walkFunction(self):2215 return shortestBacktrack2216 """2217 def test_0_1(self):2218 testSetSkeleton(self, 0, 1)2219 """2220 def test_1_0(self):2221 testSetSkeleton(self, 1, 0)2222 def test_0_0(self):2223 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] 2224 testSetSkeleton(self, 0, 0, doNotTest)2225 class TestShortestBacktrack_2x2_2(unittest.TestCase):2226 strategies = list(BacktrackStrategy)2227 padFile = "./testData/maps/singleHole/map2x2_2.txt" 2228 def walkFunction(self):2229 return shortestBacktrack2230 2231 def test_0_1(self):2232 testSetSkeleton(self, 0, 1)2233 """2234 def test_1_0(self):2235 testSetSkeleton(self, 1, 0)2236 """2237 def test_0_0(self):2238 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]2239 testSetSkeleton(self, 0, 0, doNotTest)2240 class TestShortestBacktrackLook_2x2_1(unittest.TestCase):2241 strategies = list(BacktrackStrategy)2242 padFile = "./testData/maps/singleHole/map2x2_1.txt" 2243 def walkFunction(self):2244 return shortestBacktrackLook2245 """2246 def test_0_1(self):2247 testSetSkeleton(self, 0, 1)2248 """2249 def test_1_0(self):2250 testSetSkeleton(self, 1, 0)2251 def test_0_0(self):2252 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] 2253 testSetSkeleton(self, 0, 0, doNotTest)2254 class TestShortestBacktrackLook_2x2_2(unittest.TestCase):2255 strategies = list(BacktrackStrategy)2256 padFile = "./testData/maps/singleHole/map2x2_2.txt" 2257 def walkFunction(self):2258 return shortestBacktrackLook2259 2260 def test_0_1(self):2261 testSetSkeleton(self, 0, 1)2262 """2263 def test_1_0(self):2264 testSetSkeleton(self, 1, 0)2265 """2266 def test_0_0(self):2267 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]2268 testSetSkeleton(self, 0, 0, doNotTest)2269 class TestDFS_4x2_1_oneHole(unittest.TestCase):2270 strategies = list(DFSStrategy)2271 padFile = "./testData/maps/singleHole/map4x2_1.txt" 2272 def walkFunction(self):2273 return dfs2274 2275 def test_0_1(self):2276 testSetSkeleton(self, 0, 1)2277 2278 def test_1_0(self):2279 testSetSkeleton(self, 1, 0)2280 def test_0_0(self):2281 testSetSkeleton(self, 0, 0)2282 2283 """2284 def test_2_0(self):2285 testSetSkeleton(self, 2, 0)2286 """2287 def test_3_1(self):2288 testSetSkeleton(self, 3, 1)2289 class TestDFS_4x2_2_oneHole(unittest.TestCase):2290 strategies = list(DFSStrategy)2291 padFile = "./testData/maps/singleHole/map4x2_2.txt" 2292 def walkFunction(self):2293 return dfs2294 2295 def test_0_1(self):2296 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]2297 testSetSkeleton(self, 0, 1, doNotTest)2298 2299 def test_1_0(self):2300 testSetSkeleton(self, 1, 0)2301 def test_0_0(self):2302 testSetSkeleton(self, 0, 0)2303 2304 def test_2_0(self):2305 testSetSkeleton(self, 2, 0)2306 def test_3_1(self):2307 testSetSkeleton(self, 3, 1)2308 class TestDFS_4x2_3_oneHole(unittest.TestCase):2309 strategies = list(DFSStrategy)2310 padFile = "./testData/maps/singleHole/map4x2_3.txt" 2311 def walkFunction(self):2312 return dfs2313 2314 def test_0_1(self):2315 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]2316 testSetSkeleton(self, 0, 1, doNotTest)2317 2318 def test_1_0(self):2319 testSetSkeleton(self, 1, 0)2320 def test_0_0(self):2321 testSetSkeleton(self, 0, 0)2322 2323 def test_2_0(self):2324 testSetSkeleton(self, 2, 0)2325 def test_3_1(self):2326 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]2327 testSetSkeleton(self, 3, 1, doNotTest)2328 class TestDFSLook_4x2_1_oneHole(unittest.TestCase):2329 strategies = list(DFSStrategy)2330 padFile = "./testData/maps/singleHole/map4x2_1.txt" 2331 def walkFunction(self):2332 return dfsLook2333 def test_0_1(self):2334 testSetSkeleton(self, 0, 1)2335 2336 def test_1_0(self):2337 testSetSkeleton(self, 1, 0)2338 def test_0_0(self):2339 testSetSkeleton(self, 0, 0)2340 2341 """2342 def test_2_0(self):2343 testSetSkeleton(self, 2, 0)2344 """2345 def test_3_1(self):2346 testSetSkeleton(self, 3, 1)2347 class TestDFSLook_4x2_2_oneHole(unittest.TestCase):2348 strategies = list(DFSStrategy)2349 padFile = "./testData/maps/singleHole/map4x2_2.txt" 2350 def walkFunction(self):2351 return dfsLook2352 2353 def test_0_1(self):2354 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]2355 testSetSkeleton(self, 0, 1, doNotTest)2356 2357 def test_1_0(self):2358 testSetSkeleton(self, 1, 0)2359 def test_0_0(self):2360 testSetSkeleton(self, 0, 0)2361 2362 def test_2_0(self):2363 testSetSkeleton(self, 2, 0)2364 def test_3_1(self):2365 testSetSkeleton(self, 3, 1)2366 class TestDFSLook_4x2_3_oneHole(unittest.TestCase):2367 strategies = list(DFSStrategy)2368 padFile = "./testData/maps/singleHole/map4x2_3.txt" 2369 def walkFunction(self):2370 return dfsLook2371 def test_0_1(self):2372 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]2373 testSetSkeleton(self, 0, 1, doNotTest)2374 2375 def test_1_0(self):2376 testSetSkeleton(self, 1, 0)2377 def test_0_0(self):2378 testSetSkeleton(self, 0, 0)2379 2380 def test_2_0(self):2381 testSetSkeleton(self, 2, 0)2382 def test_3_1(self):2383 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]2384 testSetSkeleton(self, 3, 1, doNotTest)2385 class TestShortestBacktrack_4x2_1_oneHole(unittest.TestCase):2386 strategies = list(BacktrackStrategy)2387 padFile = "./testData/maps/singleHole/map4x2_1.txt" 2388 def walkFunction(self):2389 return shortestBacktrack2390 2391 def test_0_1(self):2392 testSetSkeleton(self, 0, 1)2393 2394 def test_1_0(self):2395 testSetSkeleton(self, 1, 0)2396 def test_0_0(self):2397 testSetSkeleton(self, 0, 0)2398 2399 """2400 def test_2_0(self):2401 testSetSkeleton(self, 2, 0)2402 """2403 def test_3_1(self):2404 testSetSkeleton(self, 3, 1)2405 class TestShortestBacktrack_4x2_2_oneHole(unittest.TestCase):2406 strategies = list(BacktrackStrategy)2407 padFile = "./testData/maps/singleHole/map4x2_2.txt" 2408 def walkFunction(self):2409 return shortestBacktrack2410 2411 def test_0_1(self):2412 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]2413 testSetSkeleton(self, 0, 1, doNotTest)2414 2415 def test_1_0(self):2416 testSetSkeleton(self, 1, 0)2417 def test_0_0(self):2418 testSetSkeleton(self, 0, 0)2419 2420 def test_2_0(self):2421 testSetSkeleton(self, 2, 0)2422 def test_3_1(self):2423 testSetSkeleton(self, 3, 1)2424 class TestShortestBacktrack_4x2_3_oneHole(unittest.TestCase):2425 strategies = list(BacktrackStrategy)2426 padFile = "./testData/maps/singleHole/map4x2_3.txt" 2427 def walkFunction(self):2428 return shortestBacktrack2429 2430 def test_0_1(self):2431 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]2432 testSetSkeleton(self, 0, 1, doNotTest)2433 2434 def test_1_0(self):2435 testSetSkeleton(self, 1, 0)2436 def test_0_0(self):2437 testSetSkeleton(self, 0, 0)2438 2439 def test_2_0(self):2440 testSetSkeleton(self, 2, 0)2441 def test_3_1(self):2442 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]2443 testSetSkeleton(self, 3, 1, doNotTest)2444 class TestShortestBacktrackLook_4x2_1_oneHole(unittest.TestCase):2445 strategies = list(BacktrackStrategy)2446 padFile = "./testData/maps/singleHole/map4x2_1.txt" 2447 def walkFunction(self):2448 return shortestBacktrackLook2449 2450 def test_0_1(self):2451 testSetSkeleton(self, 0, 1)2452 2453 def test_1_0(self):2454 testSetSkeleton(self, 1, 0)2455 def test_0_0(self):2456 testSetSkeleton(self, 0, 0)2457 2458 """2459 def test_2_0(self):2460 testSetSkeleton(self, 2, 0)2461 """2462 def test_3_1(self):2463 testSetSkeleton(self, 3, 1)2464 class TestShortestBacktrackLook_4x2_2_oneHole(unittest.TestCase):2465 strategies = list(BacktrackStrategy)2466 padFile = "./testData/maps/singleHole/map4x2_2.txt" 2467 def walkFunction(self):2468 return shortestBacktrackLook2469 2470 def test_0_1(self):2471 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]2472 testSetSkeleton(self, 0, 1, doNotTest)2473 2474 def test_1_0(self):2475 testSetSkeleton(self, 1, 0)2476 def test_0_0(self):2477 testSetSkeleton(self, 0, 0)2478 2479 def test_2_0(self):2480 testSetSkeleton(self, 2, 0)2481 def test_3_1(self):2482 testSetSkeleton(self, 3, 1)2483 class TestShortestBacktrackLook_4x2_3_oneHole(unittest.TestCase):2484 strategies = list(BacktrackStrategy)2485 padFile = "./testData/maps/singleHole/map4x2_3.txt" 2486 def walkFunction(self):2487 return shortestBacktrackLook2488 2489 def test_0_1(self):2490 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]2491 testSetSkeleton(self, 0, 1, doNotTest)2492 2493 def test_1_0(self):2494 testSetSkeleton(self, 1, 0)2495 def test_0_0(self):2496 testSetSkeleton(self, 0, 0)2497 2498 def test_2_0(self):2499 testSetSkeleton(self, 2, 0)2500 def test_3_1(self):2501 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]2502 testSetSkeleton(self, 3, 1, doNotTest)2503 class TestDFS_7x9_1_oneHole(unittest.TestCase):2504 strategies = list(DFSStrategy)2505 padFile = "./testData/maps/singleHole/map7x9_1.txt" 2506 def walkFunction(self):2507 return dfs2508 2509 def test_1_2(self):2510 testSetSkeleton(self, 1, 2)2511 2512 def test_0_1(self):2513 testSetSkeleton(self, 0, 1)2514 2515 def test_1_0(self):2516 testSetSkeleton(self, 1, 0)2517 def test_0_0(self):2518 testSetSkeleton(self, 0, 0)2519 def test_2_0(self):2520 testSetSkeleton(self, 2, 0)2521 2522 def test_0_2(self):2523 testSetSkeleton(self, 0, 2)2524 def test_2_3(self):2525 testSetSkeleton(self, 2, 3)2526 def test_1_3(self):2527 testSetSkeleton(self, 1, 3)2528 def test_5_2(self):2529 testSetSkeleton(self, 5, 2)2530 class TestDFS_7x9_2_oneHole(unittest.TestCase):2531 strategies = list(DFSStrategy)2532 padFile = "./testData/maps/singleHole/map7x9_2.txt" 2533 def walkFunction(self):2534 return dfs2535 2536 def test_1_2(self):2537 testSetSkeleton(self, 1, 2)2538 2539 def test_0_1(self):2540 testSetSkeleton(self, 0, 1)2541 2542 def test_1_0(self):2543 testSetSkeleton(self, 1, 0)2544 def test_0_0(self):2545 testSetSkeleton(self, 0, 0)2546 def test_2_0(self):2547 testSetSkeleton(self, 2, 0)2548 2549 def test_0_2(self):2550 testSetSkeleton(self, 0, 2)2551 def test_2_3(self):2552 testSetSkeleton(self, 2, 3)2553 def test_1_3(self):2554 testSetSkeleton(self, 1, 3)2555 def test_5_2(self):2556 testSetSkeleton(self, 5, 2)2557 class TestDFS_7x9_3_oneHole(unittest.TestCase):2558 strategies = list(DFSStrategy)2559 padFile = "./testData/maps/singleHole/map7x9_3.txt" 2560 def walkFunction(self):2561 return dfs2562 2563 def test_1_2(self):2564 testSetSkeleton(self, 1, 2)2565 2566 def test_0_1(self):2567 testSetSkeleton(self, 0, 1)2568 2569 def test_1_0(self):2570 testSetSkeleton(self, 1, 0)2571 def test_0_0(self):2572 testSetSkeleton(self, 0, 0)2573 def test_2_0(self):2574 testSetSkeleton(self, 2, 0)2575 2576 def test_0_2(self):2577 testSetSkeleton(self, 0, 2)2578 def test_2_3(self):2579 testSetSkeleton(self, 2, 3)2580 def test_1_3(self):2581 testSetSkeleton(self, 1, 3)2582 def test_5_2(self):2583 testSetSkeleton(self, 5, 2)2584 class TestDFSLook_7x9_1_oneHole(unittest.TestCase):2585 strategies = list(DFSStrategy)2586 padFile = "./testData/maps/singleHole/map7x9_1.txt" 2587 def walkFunction(self):2588 return dfsLook2589 2590 def test_1_2(self):2591 testSetSkeleton(self, 1, 2)2592 2593 def test_0_1(self):2594 testSetSkeleton(self, 0, 1)2595 2596 def test_1_0(self):2597 testSetSkeleton(self, 1, 0)2598 def test_0_0(self):2599 testSetSkeleton(self, 0, 0)2600 def test_2_0(self):2601 testSetSkeleton(self, 2, 0)2602 2603 def test_0_2(self):2604 testSetSkeleton(self, 0, 2)2605 def test_2_3(self):2606 testSetSkeleton(self, 2, 3)2607 def test_1_3(self):2608 testSetSkeleton(self, 1, 3)2609 def test_5_2(self):2610 testSetSkeleton(self, 5, 2)2611 class TestDFSLook_7x9_2_oneHole(unittest.TestCase):2612 strategies = list(DFSStrategy)2613 padFile = "./testData/maps/singleHole/map7x9_2.txt" 2614 def walkFunction(self):2615 return dfsLook2616 2617 def test_1_2(self):2618 testSetSkeleton(self, 1, 2)2619 2620 def test_0_1(self):2621 testSetSkeleton(self, 0, 1)2622 2623 def test_1_0(self):2624 testSetSkeleton(self, 1, 0)2625 def test_0_0(self):2626 testSetSkeleton(self, 0, 0)2627 def test_2_0(self):2628 testSetSkeleton(self, 2, 0)2629 2630 def test_0_2(self):2631 testSetSkeleton(self, 0, 2)2632 def test_2_3(self):2633 testSetSkeleton(self, 2, 3)2634 def test_1_3(self):2635 testSetSkeleton(self, 1, 3)2636 def test_5_2(self):2637 testSetSkeleton(self, 5, 2)2638 class TestDFSLook_7x9_3_oneHole(unittest.TestCase):2639 strategies = list(DFSStrategy)2640 padFile = "./testData/maps/singleHole/map7x9_3.txt" 2641 def walkFunction(self):2642 return dfsLook2643 2644 def test_1_2(self):2645 testSetSkeleton(self, 1, 2)2646 2647 def test_0_1(self):2648 testSetSkeleton(self, 0, 1)2649 2650 def test_1_0(self):2651 testSetSkeleton(self, 1, 0)2652 def test_0_0(self):2653 testSetSkeleton(self, 0, 0)2654 def test_2_0(self):2655 testSetSkeleton(self, 2, 0)2656 2657 def test_0_2(self):2658 testSetSkeleton(self, 0, 2)2659 def test_2_3(self):2660 testSetSkeleton(self, 2, 3)2661 def test_1_3(self):2662 testSetSkeleton(self, 1, 3)2663 def test_5_2(self):2664 testSetSkeleton(self, 5, 2)2665 class TestShortestBacktrack_7x9_1_oneHole(unittest.TestCase):2666 strategies = list(DFSStrategy)2667 padFile = "./testData/maps/singleHole/map7x9_1.txt" 2668 def walkFunction(self):2669 return shortestBacktrack2670 2671 def test_1_2(self):2672 testSetSkeleton(self, 1, 2)2673 2674 def test_0_1(self):2675 testSetSkeleton(self, 0, 1)2676 2677 def test_1_0(self):2678 testSetSkeleton(self, 1, 0)2679 def test_0_0(self):2680 testSetSkeleton(self, 0, 0)2681 def test_2_0(self):2682 testSetSkeleton(self, 2, 0)2683 2684 def test_0_2(self):2685 testSetSkeleton(self, 0, 2)2686 def test_2_3(self):2687 testSetSkeleton(self, 2, 3)2688 def test_1_3(self):2689 testSetSkeleton(self, 1, 3)2690 def test_5_2(self):2691 testSetSkeleton(self, 5, 2)2692 class TestShortestBacktrack_7x9_2_oneHole(unittest.TestCase):2693 strategies = list(DFSStrategy)2694 padFile = "./testData/maps/singleHole/map7x9_2.txt" 2695 def walkFunction(self):2696 return shortestBacktrack2697 2698 def test_1_2(self):2699 testSetSkeleton(self, 1, 2)2700 2701 def test_0_1(self):2702 testSetSkeleton(self, 0, 1)2703 2704 def test_1_0(self):2705 testSetSkeleton(self, 1, 0)2706 def test_0_0(self):2707 testSetSkeleton(self, 0, 0)2708 def test_2_0(self):2709 testSetSkeleton(self, 2, 0)2710 2711 def test_0_2(self):2712 testSetSkeleton(self, 0, 2)2713 def test_2_3(self):2714 testSetSkeleton(self, 2, 3)2715 def test_1_3(self):2716 testSetSkeleton(self, 1, 3)2717 def test_5_2(self):2718 testSetSkeleton(self, 5, 2)2719 class TestShortestBacktrack_7x9_3_oneHole(unittest.TestCase):2720 strategies = list(DFSStrategy)2721 padFile = "./testData/maps/singleHole/map7x9_3.txt" 2722 def walkFunction(self):2723 return shortestBacktrack2724 2725 def test_1_2(self):2726 testSetSkeleton(self, 1, 2)2727 2728 def test_0_1(self):2729 testSetSkeleton(self, 0, 1)2730 2731 def test_1_0(self):2732 testSetSkeleton(self, 1, 0)2733 def test_0_0(self):2734 testSetSkeleton(self, 0, 0)2735 def test_2_0(self):2736 testSetSkeleton(self, 2, 0)2737 2738 def test_0_2(self):2739 testSetSkeleton(self, 0, 2)2740 def test_2_3(self):2741 testSetSkeleton(self, 2, 3)2742 def test_1_3(self):2743 testSetSkeleton(self, 1, 3)2744 def test_5_2(self):2745 testSetSkeleton(self, 5, 2)2746 class TestShortestBacktrackLook_7x9_1_oneHole(unittest.TestCase):2747 strategies = list(DFSStrategy)2748 padFile = "./testData/maps/singleHole/map7x9_1.txt" 2749 def walkFunction(self):2750 return shortestBacktrackLook2751 2752 def test_1_2(self):2753 testSetSkeleton(self, 1, 2)2754 2755 def test_0_1(self):2756 testSetSkeleton(self, 0, 1)2757 2758 def test_1_0(self):2759 testSetSkeleton(self, 1, 0)2760 def test_0_0(self):2761 testSetSkeleton(self, 0, 0)2762 def test_2_0(self):2763 testSetSkeleton(self, 2, 0)2764 2765 def test_0_2(self):2766 testSetSkeleton(self, 0, 2)2767 def test_2_3(self):2768 testSetSkeleton(self, 2, 3)2769 def test_1_3(self):2770 testSetSkeleton(self, 1, 3)2771 def test_5_2(self):2772 testSetSkeleton(self, 5, 2)2773 class TestShortestBacktrackLook_7x9_2_oneHole(unittest.TestCase):2774 strategies = list(DFSStrategy)2775 padFile = "./testData/maps/singleHole/map7x9_2.txt" 2776 def walkFunction(self):2777 return shortestBacktrackLook2778 2779 def test_1_2(self):2780 testSetSkeleton(self, 1, 2)2781 2782 def test_0_1(self):2783 testSetSkeleton(self, 0, 1)2784 2785 def test_1_0(self):2786 testSetSkeleton(self, 1, 0)2787 def test_0_0(self):2788 testSetSkeleton(self, 0, 0)2789 def test_2_0(self):2790 testSetSkeleton(self, 2, 0)2791 2792 def test_0_2(self):2793 testSetSkeleton(self, 0, 2)2794 def test_2_3(self):2795 testSetSkeleton(self, 2, 3)2796 def test_1_3(self):2797 testSetSkeleton(self, 1, 3)2798 def test_5_2(self):2799 testSetSkeleton(self, 5, 2)2800 class TestShortestBacktrackLook_7x9_3_oneHole(unittest.TestCase):2801 strategies = list(DFSStrategy)2802 padFile = "./testData/maps/singleHole/map7x9_3.txt" 2803 def walkFunction(self):2804 return shortestBacktrackLook2805 2806 def test_1_2(self):2807 testSetSkeleton(self, 1, 2)2808 2809 def test_0_1(self):2810 testSetSkeleton(self, 0, 1)2811 2812 def test_1_0(self):2813 testSetSkeleton(self, 1, 0)2814 def test_0_0(self):2815 testSetSkeleton(self, 0, 0)2816 def test_2_0(self):2817 testSetSkeleton(self, 2, 0)2818 2819 def test_0_2(self):2820 testSetSkeleton(self, 0, 2)2821 def test_2_3(self):2822 testSetSkeleton(self, 2, 3)2823 def test_1_3(self):2824 testSetSkeleton(self, 1, 3)2825 def test_5_2(self):2826 testSetSkeleton(self, 5, 2)2827 class TestDFS_9x4_1_oneHole(unittest.TestCase):2828 strategies = list(DFSStrategy)2829 padFile = "./testData/maps/singleHole/map9x4_1.txt" 2830 def walkFunction(self):2831 return dfs2832 2833 def test_1_2(self):2834 testSetSkeleton(self, 1, 2)2835 2836 def test_0_1(self):2837 testSetSkeleton(self, 0, 1)2838 2839 def test_1_0(self):2840 testSetSkeleton(self, 1, 0)2841 def test_0_0(self):2842 testSetSkeleton(self, 0, 0)2843 def test_2_0(self):2844 testSetSkeleton(self, 2, 0)2845 2846 def test_0_2(self):2847 testSetSkeleton(self, 0, 2)2848 def test_2_3(self):2849 testSetSkeleton(self, 2, 3)2850 def test_1_3(self):2851 testSetSkeleton(self, 1, 3)2852 def test_5_2(self):2853 testSetSkeleton(self, 5, 2)2854 def test_2_2(self):2855 testSetSkeleton(self, 2, 2)2856 class TestDFS_9x4_2_oneHole(unittest.TestCase):2857 strategies = list(DFSStrategy)2858 padFile = "./testData/maps/singleHole/map9x4_2.txt" 2859 def walkFunction(self):2860 return dfs2861 2862 def test_1_2(self):2863 testSetSkeleton(self, 1, 2)2864 2865 def test_0_1(self):2866 testSetSkeleton(self, 0, 1)2867 2868 def test_1_0(self):2869 testSetSkeleton(self, 1, 0)2870 def test_0_0(self):2871 testSetSkeleton(self, 0, 0)2872 def test_2_0(self):2873 testSetSkeleton(self, 2, 0)2874 2875 def test_0_2(self):2876 testSetSkeleton(self, 0, 2)2877 def test_2_3(self):2878 testSetSkeleton(self, 2, 3)2879 def test_1_3(self):2880 testSetSkeleton(self, 1, 3)2881 def test_5_2(self):2882 testSetSkeleton(self, 5, 2)2883 def test_2_2(self):2884 testSetSkeleton(self, 2, 2)2885 class TestDFS_9x4_3_oneHole(unittest.TestCase):2886 strategies = list(DFSStrategy)2887 padFile = "./testData/maps/singleHole/map9x4_3.txt" 2888 def walkFunction(self):2889 return dfs2890 2891 def test_1_2(self):2892 testSetSkeleton(self, 1, 2)2893 2894 def test_0_1(self):2895 testSetSkeleton(self, 0, 1)2896 2897 def test_1_0(self):2898 testSetSkeleton(self, 1, 0)2899 def test_0_0(self):2900 testSetSkeleton(self, 0, 0)2901 def test_2_0(self):2902 testSetSkeleton(self, 2, 0)2903 2904 def test_0_2(self):2905 testSetSkeleton(self, 0, 2)2906 def test_2_3(self):2907 testSetSkeleton(self, 2, 3)2908 def test_1_3(self):2909 testSetSkeleton(self, 1, 3)2910 def test_5_3(self):2911 testSetSkeleton(self, 5, 3)2912 def test_2_2(self):2913 testSetSkeleton(self, 2, 2)2914 class TestDFS_9x4_4_oneHole(unittest.TestCase):2915 strategies = list(DFSStrategy)2916 padFile = "./testData/maps/singleHole/map9x4_4.txt" 2917 def walkFunction(self):2918 return dfs2919 2920 def test_1_2(self):2921 testSetSkeleton(self, 1, 2)2922 2923 def test_0_1(self):2924 testSetSkeleton(self, 0, 1)2925 2926 def test_1_0(self):2927 testSetSkeleton(self, 1, 0)2928 def test_0_0(self):2929 testSetSkeleton(self, 0, 0)2930 def test_2_0(self):2931 testSetSkeleton(self, 2, 0)2932 def test_2_3(self):2933 testSetSkeleton(self, 2, 3)2934 def test_1_3(self):2935 testSetSkeleton(self, 1, 3)2936 def test_5_2(self):2937 testSetSkeleton(self, 5, 2)2938 def test_2_2(self):2939 testSetSkeleton(self, 2, 2)2940 class TestDFS_9x4_5_oneHole(unittest.TestCase):2941 strategies = list(DFSStrategy)2942 padFile = "./testData/maps/singleHole/map9x4_5.txt" 2943 def walkFunction(self):2944 return dfs2945 2946 def test_1_2(self):2947 testSetSkeleton(self, 1, 2)2948 2949 def test_0_1(self):2950 testSetSkeleton(self, 0, 1)2951 2952 def test_1_0(self):2953 testSetSkeleton(self, 1, 0)2954 def test_0_0(self):2955 testSetSkeleton(self, 0, 0)2956 def test_2_0(self):2957 testSetSkeleton(self, 2, 0)2958 2959 def test_0_2(self):2960 testSetSkeleton(self, 0, 2)2961 def test_2_3(self):2962 testSetSkeleton(self, 2, 3)2963 def test_1_3(self):2964 testSetSkeleton(self, 1, 3)2965 def test_5_2(self):2966 testSetSkeleton(self, 5, 2)2967 def test_2_2(self):2968 testSetSkeleton(self, 2, 2)2969 class TestDFSLook_9x4_1_oneHole(unittest.TestCase):2970 strategies = list(DFSStrategy)2971 padFile = "./testData/maps/singleHole/map9x4_1.txt" 2972 def walkFunction(self):2973 return dfsLook2974 2975 def test_1_2(self):2976 testSetSkeleton(self, 1, 2)2977 2978 def test_0_1(self):2979 testSetSkeleton(self, 0, 1)2980 2981 def test_1_0(self):2982 testSetSkeleton(self, 1, 0)2983 def test_0_0(self):2984 testSetSkeleton(self, 0, 0)2985 def test_2_0(self):2986 testSetSkeleton(self, 2, 0)2987 2988 def test_0_2(self):2989 testSetSkeleton(self, 0, 2)2990 def test_2_3(self):2991 testSetSkeleton(self, 2, 3)2992 def test_1_3(self):2993 testSetSkeleton(self, 1, 3)2994 def test_5_2(self):2995 testSetSkeleton(self, 5, 2)2996 def test_2_2(self):2997 testSetSkeleton(self, 2, 2)2998 class TestDFSLook_9x4_2_oneHole(unittest.TestCase):2999 strategies = list(DFSStrategy)3000 padFile = "./testData/maps/singleHole/map9x4_2.txt" 3001 def walkFunction(self):3002 return dfsLook3003 3004 def test_1_2(self):3005 testSetSkeleton(self, 1, 2)3006 3007 def test_0_1(self):3008 testSetSkeleton(self, 0, 1)3009 3010 def test_1_0(self):3011 testSetSkeleton(self, 1, 0)3012 def test_0_0(self):3013 testSetSkeleton(self, 0, 0)3014 def test_2_0(self):3015 testSetSkeleton(self, 2, 0)3016 3017 def test_0_2(self):3018 testSetSkeleton(self, 0, 2)3019 def test_2_3(self):3020 testSetSkeleton(self, 2, 3)3021 def test_1_3(self):3022 testSetSkeleton(self, 1, 3)3023 def test_5_2(self):3024 testSetSkeleton(self, 5, 2)3025 def test_2_2(self):3026 testSetSkeleton(self, 2, 2)3027 class TestDFSLook_9x4_3_oneHole(unittest.TestCase):3028 strategies = list(DFSStrategy)3029 padFile = "./testData/maps/singleHole/map9x4_3.txt" 3030 def walkFunction(self):3031 return dfsLook3032 3033 def test_1_2(self):3034 testSetSkeleton(self, 1, 2)3035 3036 def test_0_1(self):3037 testSetSkeleton(self, 0, 1)3038 3039 def test_1_0(self):3040 testSetSkeleton(self, 1, 0)3041 def test_0_0(self):3042 testSetSkeleton(self, 0, 0)3043 def test_2_0(self):3044 testSetSkeleton(self, 2, 0)3045 3046 def test_0_2(self):3047 testSetSkeleton(self, 0, 2)3048 def test_2_3(self):3049 testSetSkeleton(self, 2, 3)3050 def test_1_3(self):3051 testSetSkeleton(self, 1, 3)3052 def test_5_3(self):3053 testSetSkeleton(self, 5, 3)3054 def test_2_2(self):3055 testSetSkeleton(self, 2, 2)3056 class TestDFSLook_9x4_4_oneHole(unittest.TestCase):3057 strategies = list(DFSStrategy)3058 padFile = "./testData/maps/singleHole/map9x4_4.txt" 3059 def walkFunction(self):3060 return dfsLook3061 3062 def test_1_2(self):3063 testSetSkeleton(self, 1, 2)3064 3065 def test_0_1(self):3066 testSetSkeleton(self, 0, 1)3067 3068 def test_1_0(self):3069 testSetSkeleton(self, 1, 0)3070 def test_0_0(self):3071 testSetSkeleton(self, 0, 0)3072 def test_2_0(self):3073 testSetSkeleton(self, 2, 0)3074 def test_2_3(self):3075 testSetSkeleton(self, 2, 3)3076 def test_1_3(self):3077 testSetSkeleton(self, 1, 3)3078 def test_5_2(self):3079 testSetSkeleton(self, 5, 2)3080 def test_2_2(self):3081 testSetSkeleton(self, 2, 2)3082 class TestDFSLook_9x4_5_oneHole(unittest.TestCase):3083 strategies = list(DFSStrategy)3084 padFile = "./testData/maps/singleHole/map9x4_5.txt" 3085 def walkFunction(self):3086 return dfsLook3087 3088 def test_1_2(self):3089 testSetSkeleton(self, 1, 2)3090 3091 def test_0_1(self):3092 testSetSkeleton(self, 0, 1)3093 3094 def test_1_0(self):3095 testSetSkeleton(self, 1, 0)3096 def test_0_0(self):3097 testSetSkeleton(self, 0, 0)3098 def test_2_0(self):3099 testSetSkeleton(self, 2, 0)3100 3101 def test_0_2(self):3102 testSetSkeleton(self, 0, 2)3103 def test_2_3(self):3104 testSetSkeleton(self, 2, 3)3105 def test_1_3(self):3106 testSetSkeleton(self, 1, 3)3107 def test_5_2(self):3108 testSetSkeleton(self, 5, 2)3109 def test_2_2(self):3110 testSetSkeleton(self, 2, 2)3111 class TestShortestBacktrack_9x4_1_oneHole(unittest.TestCase):3112 strategies = list(BacktrackStrategy)3113 padFile = "./testData/maps/singleHole/map9x4_1.txt" 3114 def walkFunction(self):3115 return shortestBacktrack3116 3117 def test_1_2(self):3118 testSetSkeleton(self, 1, 2)3119 3120 def test_0_1(self):3121 testSetSkeleton(self, 0, 1)3122 3123 def test_1_0(self):3124 testSetSkeleton(self, 1, 0)3125 def test_0_0(self):3126 testSetSkeleton(self, 0, 0)3127 def test_2_0(self):3128 testSetSkeleton(self, 2, 0)3129 3130 def test_0_2(self):3131 testSetSkeleton(self, 0, 2)3132 def test_2_3(self):3133 testSetSkeleton(self, 2, 3)3134 def test_1_3(self):3135 testSetSkeleton(self, 1, 3)3136 def test_5_2(self):3137 testSetSkeleton(self, 5, 2)3138 def test_2_2(self):3139 testSetSkeleton(self, 2, 2)3140 class TestShortestBacktrack_9x4_2_oneHole(unittest.TestCase):3141 strategies = list(BacktrackStrategy)3142 padFile = "./testData/maps/singleHole/map9x4_2.txt" 3143 def walkFunction(self):3144 return shortestBacktrack3145 3146 def test_1_2(self):3147 testSetSkeleton(self, 1, 2)3148 3149 def test_0_1(self):3150 testSetSkeleton(self, 0, 1)3151 3152 def test_1_0(self):3153 testSetSkeleton(self, 1, 0)3154 def test_0_0(self):3155 testSetSkeleton(self, 0, 0)3156 def test_2_0(self):3157 testSetSkeleton(self, 2, 0)3158 3159 def test_0_2(self):3160 testSetSkeleton(self, 0, 2)3161 def test_2_3(self):3162 testSetSkeleton(self, 2, 3)3163 def test_1_3(self):3164 testSetSkeleton(self, 1, 3)3165 def test_5_2(self):3166 testSetSkeleton(self, 5, 2)3167 def test_2_2(self):3168 testSetSkeleton(self, 2, 2)3169 class TestShortestBacktrack_9x4_3_oneHole(unittest.TestCase):3170 strategies = list(BacktrackStrategy)3171 padFile = "./testData/maps/singleHole/map9x4_3.txt" 3172 def walkFunction(self):3173 return shortestBacktrack3174 3175 def test_1_2(self):3176 testSetSkeleton(self, 1, 2)3177 3178 def test_0_1(self):3179 testSetSkeleton(self, 0, 1)3180 3181 def test_1_0(self):3182 testSetSkeleton(self, 1, 0)3183 def test_0_0(self):3184 testSetSkeleton(self, 0, 0)3185 def test_2_0(self):3186 testSetSkeleton(self, 2, 0)3187 3188 def test_0_2(self):3189 testSetSkeleton(self, 0, 2)3190 def test_2_3(self):3191 testSetSkeleton(self, 2, 3)3192 def test_1_3(self):3193 testSetSkeleton(self, 1, 3)3194 def test_5_3(self):3195 testSetSkeleton(self, 5, 3)3196 def test_2_2(self):3197 testSetSkeleton(self, 2, 2)3198 class TestShortestBacktrack_9x4_4_oneHole(unittest.TestCase):3199 strategies = list(BacktrackStrategy)3200 padFile = "./testData/maps/singleHole/map9x4_4.txt" 3201 def walkFunction(self):3202 return shortestBacktrack3203 3204 def test_1_2(self):3205 testSetSkeleton(self, 1, 2)3206 3207 def test_0_1(self):3208 testSetSkeleton(self, 0, 1)3209 3210 def test_1_0(self):3211 testSetSkeleton(self, 1, 0)3212 def test_0_0(self):3213 testSetSkeleton(self, 0, 0)3214 def test_2_0(self):3215 testSetSkeleton(self, 2, 0)3216 def test_2_3(self):3217 testSetSkeleton(self, 2, 3)3218 def test_1_3(self):3219 testSetSkeleton(self, 1, 3)3220 def test_5_2(self):3221 testSetSkeleton(self, 5, 2)3222 def test_2_2(self):3223 testSetSkeleton(self, 2, 2)3224 class TestShortestBacktrack_9x4_5_oneHole(unittest.TestCase):3225 strategies = list(BacktrackStrategy)3226 padFile = "./testData/maps/singleHole/map9x4_5.txt" 3227 def walkFunction(self):3228 return shortestBacktrack3229 3230 def test_1_2(self):3231 testSetSkeleton(self, 1, 2)3232 3233 def test_0_1(self):3234 testSetSkeleton(self, 0, 1)3235 3236 def test_1_0(self):3237 testSetSkeleton(self, 1, 0)3238 def test_0_0(self):3239 testSetSkeleton(self, 0, 0)3240 def test_2_0(self):3241 testSetSkeleton(self, 2, 0)3242 3243 def test_0_2(self):3244 testSetSkeleton(self, 0, 2)3245 def test_2_3(self):3246 testSetSkeleton(self, 2, 3)3247 def test_1_3(self):3248 testSetSkeleton(self, 1, 3)3249 def test_5_2(self):3250 testSetSkeleton(self, 5, 2)3251 def test_2_2(self):3252 testSetSkeleton(self, 2, 2)3253 class TestShortestBacktrackLook_9x4_1_oneHole(unittest.TestCase):3254 strategies = list(BacktrackStrategy)3255 padFile = "./testData/maps/singleHole/map9x4_1.txt" 3256 def walkFunction(self):3257 return shortestBacktrackLook3258 3259 def test_1_2(self):3260 testSetSkeleton(self, 1, 2)3261 3262 def test_0_1(self):3263 testSetSkeleton(self, 0, 1)3264 3265 def test_1_0(self):3266 testSetSkeleton(self, 1, 0)3267 def test_0_0(self):3268 testSetSkeleton(self, 0, 0)3269 def test_2_0(self):3270 testSetSkeleton(self, 2, 0)3271 3272 def test_0_2(self):3273 testSetSkeleton(self, 0, 2)3274 def test_2_3(self):3275 testSetSkeleton(self, 2, 3)3276 def test_1_3(self):3277 testSetSkeleton(self, 1, 3)3278 def test_5_2(self):3279 testSetSkeleton(self, 5, 2)3280 def test_2_2(self):3281 testSetSkeleton(self, 2, 2)3282 class TestShortestBacktrackLook_9x4_2_oneHole(unittest.TestCase):3283 strategies = list(BacktrackStrategy)3284 padFile = "./testData/maps/singleHole/map9x4_2.txt" 3285 def walkFunction(self):3286 return shortestBacktrackLook3287 3288 def test_1_2(self):3289 testSetSkeleton(self, 1, 2)3290 3291 def test_0_1(self):3292 testSetSkeleton(self, 0, 1)3293 3294 def test_1_0(self):3295 testSetSkeleton(self, 1, 0)3296 def test_0_0(self):3297 testSetSkeleton(self, 0, 0)3298 def test_2_0(self):3299 testSetSkeleton(self, 2, 0)3300 3301 def test_0_2(self):3302 testSetSkeleton(self, 0, 2)3303 def test_2_3(self):3304 testSetSkeleton(self, 2, 3)3305 def test_1_3(self):3306 testSetSkeleton(self, 1, 3)3307 def test_5_2(self):3308 testSetSkeleton(self, 5, 2)3309 def test_2_2(self):3310 testSetSkeleton(self, 2, 2)3311 class TestShortestBacktrackLook_9x4_3_oneHole(unittest.TestCase):3312 strategies = list(BacktrackStrategy)3313 padFile = "./testData/maps/singleHole/map9x4_3.txt" 3314 def walkFunction(self):3315 return shortestBacktrackLook3316 3317 def test_1_2(self):3318 testSetSkeleton(self, 1, 2)3319 3320 def test_0_1(self):3321 testSetSkeleton(self, 0, 1)3322 3323 def test_1_0(self):3324 testSetSkeleton(self, 1, 0)3325 def test_0_0(self):3326 testSetSkeleton(self, 0, 0)3327 def test_2_0(self):3328 testSetSkeleton(self, 2, 0)3329 3330 def test_0_2(self):3331 testSetSkeleton(self, 0, 2)3332 def test_2_3(self):3333 testSetSkeleton(self, 2, 3)3334 def test_1_3(self):3335 testSetSkeleton(self, 1, 3)3336 def test_5_3(self):3337 testSetSkeleton(self, 5, 3)3338 def test_2_2(self):3339 testSetSkeleton(self, 2, 2)3340 class TestShortestBacktrackLook_9x4_4_oneHole(unittest.TestCase):3341 strategies = list(BacktrackStrategy)3342 padFile = "./testData/maps/singleHole/map9x4_4.txt" 3343 def walkFunction(self):3344 return shortestBacktrackLook3345 3346 def test_1_2(self):3347 testSetSkeleton(self, 1, 2)3348 3349 def test_0_1(self):3350 testSetSkeleton(self, 0, 1)3351 3352 def test_1_0(self):3353 testSetSkeleton(self, 1, 0)3354 def test_0_0(self):3355 testSetSkeleton(self, 0, 0)3356 def test_2_0(self):3357 testSetSkeleton(self, 2, 0)3358 def test_2_3(self):3359 testSetSkeleton(self, 2, 3)3360 def test_1_3(self):3361 testSetSkeleton(self, 1, 3)3362 def test_5_2(self):3363 testSetSkeleton(self, 5, 2)3364 def test_2_2(self):3365 testSetSkeleton(self, 2, 2)3366 class TestShortestBacktrackLook_9x4_5_oneHole(unittest.TestCase):3367 strategies = list(BacktrackStrategy)3368 padFile = "./testData/maps/singleHole/map9x4_5.txt" 3369 def walkFunction(self):3370 return shortestBacktrackLook3371 3372 def test_1_2(self):3373 testSetSkeleton(self, 1, 2)3374 3375 def test_0_1(self):3376 testSetSkeleton(self, 0, 1)3377 3378 def test_1_0(self):3379 testSetSkeleton(self, 1, 0)3380 def test_0_0(self):3381 testSetSkeleton(self, 0, 0)3382 def test_2_0(self):3383 testSetSkeleton(self, 2, 0)3384 3385 def test_0_2(self):3386 testSetSkeleton(self, 0, 2)3387 def test_2_3(self):3388 testSetSkeleton(self, 2, 3)3389 def test_1_3(self):3390 testSetSkeleton(self, 1, 3)3391 def test_5_2(self):3392 testSetSkeleton(self, 5, 2)3393 def test_2_2(self):3394 testSetSkeleton(self, 2, 2)3395# End test pads with one hole3396# Test pads with some holes3397if (True):3398 class TestDFS_4x2_1_someHoles(unittest.TestCase):3399 strategies = list(DFSStrategy)3400 padFile = "./testData/maps/someHoles/map4x2_1.txt" 3401 def walkFunction(self):3402 return dfs3403 3404 def test_0_1(self):3405 testSetSkeleton(self, 0, 1)3406 3407 def test_1_0(self):3408 testSetSkeleton(self, 1, 0)3409 def test_0_0(self):3410 testSetSkeleton(self, 0, 0)3411 3412 def test_2_0(self):3413 testSetSkeleton(self, 2, 0)3414 3415 def test_3_0(self):3416 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]3417 testSetSkeleton(self, 3, 0, doNotTest)3418 3419 class TestDFS_4x2_2_someHoles(unittest.TestCase):3420 strategies = list(DFSStrategy)3421 padFile = "./testData/maps/someHoles/map4x2_2.txt" 3422 def walkFunction(self):3423 return dfs3424 3425 def test_0_1(self):3426 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]3427 testSetSkeleton(self, 0, 1, doNotTest)3428 3429 def test_1_0(self):3430 testSetSkeleton(self, 1, 0)3431 """3432 def test_0_0(self):3433 testSetSkeleton(self, 0, 0)3434 """3435 3436 def test_2_0(self):3437 testSetSkeleton(self, 2, 0)3438 def test_3_1(self):3439 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]3440 testSetSkeleton(self, 3, 1, doNotTest)3441 class TestDFS_4x2_3_someHoles(unittest.TestCase):3442 strategies = list(DFSStrategy)3443 padFile = "./testData/maps/someHoles/map4x2_3.txt" 3444 def walkFunction(self):3445 return dfs3446 3447 """3448 def test_0_1(self):3449 testSetSkeleton(self, 0, 1)3450 """3451 def test_1_0(self):3452 testSetSkeleton(self, 1, 0)3453 def test_0_0(self):3454 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]3455 testSetSkeleton(self, 0, 0, doNotTest)3456 3457 """3458 def test_2_0(self):3459 testSetSkeleton(self, 2, 0)3460 """3461 def test_2_1(self):3462 testSetSkeleton(self, 2, 1)3463 def test_3_1(self):3464 testSetSkeleton(self, 3, 1)3465 class TestDFSLook_4x2_1_someHoles(unittest.TestCase):3466 strategies = list(DFSStrategy)3467 padFile = "./testData/maps/someHoles/map4x2_1.txt" 3468 def walkFunction(self):3469 return dfsLook3470 3471 def test_0_1(self):3472 testSetSkeleton(self, 0, 1)3473 3474 def test_1_0(self):3475 testSetSkeleton(self, 1, 0)3476 def test_0_0(self):3477 testSetSkeleton(self, 0, 0)3478 3479 def test_2_0(self):3480 testSetSkeleton(self, 2, 0)3481 3482 def test_3_0(self):3483 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]3484 testSetSkeleton(self, 3, 0, doNotTest)3485 3486 class TestDFSLook_4x2_2_someHoles(unittest.TestCase):3487 strategies = list(DFSStrategy)3488 padFile = "./testData/maps/someHoles/map4x2_2.txt" 3489 def walkFunction(self):3490 return dfsLook3491 3492 def test_0_1(self):3493 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]3494 testSetSkeleton(self, 0, 1, doNotTest)3495 3496 def test_1_0(self):3497 testSetSkeleton(self, 1, 0)3498 """3499 def test_0_0(self):3500 testSetSkeleton(self, 0, 0)3501 """3502 3503 def test_2_0(self):3504 testSetSkeleton(self, 2, 0)3505 def test_3_1(self):3506 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]3507 testSetSkeleton(self, 3, 1, doNotTest)3508 class TestDFSLook_4x2_3_someHoles(unittest.TestCase):3509 strategies = list(DFSStrategy)3510 padFile = "./testData/maps/someHoles/map4x2_3.txt" 3511 def walkFunction(self):3512 return dfsLook3513 3514 """3515 def test_0_1(self):3516 testSetSkeleton(self, 0, 1)3517 """3518 def test_1_0(self):3519 testSetSkeleton(self, 1, 0)3520 def test_0_0(self):3521 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]3522 testSetSkeleton(self, 0, 0, doNotTest)3523 3524 """3525 def test_2_0(self):3526 testSetSkeleton(self, 2, 0)3527 """3528 def test_2_1(self):3529 testSetSkeleton(self, 2, 1)3530 def test_3_1(self):3531 testSetSkeleton(self, 3, 1)3532 class TestShortestBacktrack_4x2_1_someHoles(unittest.TestCase):3533 strategies = list(BacktrackStrategy)3534 padFile = "./testData/maps/someHoles/map4x2_1.txt" 3535 def walkFunction(self):3536 return shortestBacktrack3537 3538 def test_0_1(self):3539 testSetSkeleton(self, 0, 1)3540 3541 def test_1_0(self):3542 testSetSkeleton(self, 1, 0)3543 def test_0_0(self):3544 testSetSkeleton(self, 0, 0)3545 3546 def test_2_0(self):3547 testSetSkeleton(self, 2, 0)3548 3549 def test_3_0(self):3550 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]3551 testSetSkeleton(self, 3, 0, doNotTest)3552 3553 class TestShortestBacktrack_4x2_2_someHoles(unittest.TestCase):3554 strategies = list(BacktrackStrategy)3555 padFile = "./testData/maps/someHoles/map4x2_2.txt" 3556 def walkFunction(self):3557 return shortestBacktrack3558 3559 def test_0_1(self):3560 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]3561 testSetSkeleton(self, 0, 1, doNotTest)3562 3563 def test_1_0(self):3564 testSetSkeleton(self, 1, 0)3565 """3566 def test_0_0(self):3567 testSetSkeleton(self, 0, 0)3568 """3569 3570 def test_2_0(self):3571 testSetSkeleton(self, 2, 0)3572 def test_3_1(self):3573 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]3574 testSetSkeleton(self, 3, 1, doNotTest)3575 class TestShortestBacktrack_4x2_3_someHoles(unittest.TestCase):3576 strategies = list(BacktrackStrategy)3577 padFile = "./testData/maps/someHoles/map4x2_3.txt" 3578 def walkFunction(self):3579 return shortestBacktrack3580 3581 """3582 def test_0_1(self):3583 testSetSkeleton(self, 0, 1)3584 """3585 def test_1_0(self):3586 testSetSkeleton(self, 1, 0)3587 def test_0_0(self):3588 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]3589 testSetSkeleton(self, 0, 0, doNotTest)3590 3591 """3592 def test_2_0(self):3593 testSetSkeleton(self, 2, 0)3594 """3595 def test_2_1(self):3596 testSetSkeleton(self, 2, 1)3597 def test_3_1(self):3598 testSetSkeleton(self, 3, 1)3599 class TestShortestBacktrackLook_4x2_1_someHoles(unittest.TestCase):3600 strategies = list(BacktrackStrategy)3601 padFile = "./testData/maps/someHoles/map4x2_1.txt" 3602 def walkFunction(self):3603 return shortestBacktrackLook3604 3605 def test_0_1(self):3606 testSetSkeleton(self, 0, 1)3607 3608 def test_1_0(self):3609 testSetSkeleton(self, 1, 0)3610 def test_0_0(self):3611 testSetSkeleton(self, 0, 0)3612 3613 def test_2_0(self):3614 testSetSkeleton(self, 2, 0)3615 3616 def test_3_0(self):3617 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]3618 testSetSkeleton(self, 3, 0, doNotTest)3619 3620 class TestShortestBacktrackLook_4x2_2_someHoles(unittest.TestCase):3621 strategies = list(BacktrackStrategy)3622 padFile = "./testData/maps/someHoles/map4x2_2.txt" 3623 def walkFunction(self):3624 return shortestBacktrackLook3625 3626 def test_0_1(self):3627 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]3628 testSetSkeleton(self, 0, 1, doNotTest)3629 3630 def test_1_0(self):3631 testSetSkeleton(self, 1, 0)3632 """3633 def test_0_0(self):3634 testSetSkeleton(self, 0, 0)3635 """3636 3637 def test_2_0(self):3638 testSetSkeleton(self, 2, 0)3639 def test_3_1(self):3640 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]3641 testSetSkeleton(self, 3, 1, doNotTest)3642 class TestShortestBacktrackLook_4x2_3_someHoles(unittest.TestCase):3643 strategies = list(BacktrackStrategy)3644 padFile = "./testData/maps/someHoles/map4x2_3.txt" 3645 def walkFunction(self):3646 return shortestBacktrackLook3647 3648 """3649 def test_0_1(self):3650 testSetSkeleton(self, 0, 1)3651 """3652 def test_1_0(self):3653 testSetSkeleton(self, 1, 0)3654 def test_0_0(self):3655 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]3656 testSetSkeleton(self, 0, 0, doNotTest)3657 3658 """3659 def test_2_0(self):3660 testSetSkeleton(self, 2, 0)3661 """3662 def test_2_1(self):3663 testSetSkeleton(self, 2, 1)3664 def test_3_1(self):3665 testSetSkeleton(self, 3, 1)3666 class TestDFS_5x6_1_someHoles(unittest.TestCase):3667 strategies = list(DFSStrategy)3668 padFile = "./testData/maps/someHoles/map5x6_1.txt" 3669 def walkFunction(self):3670 return dfs3671 3672 def test_1_2(self):3673 testSetSkeleton(self, 1, 2)3674 def test_2_1(self):3675 testSetSkeleton(self, 2, 1)3676 3677 def test_0_1(self):3678 testSetSkeleton(self, 0, 1)3679 3680 def test_1_0(self):3681 testSetSkeleton(self, 1, 0)3682 def test_0_0(self):3683 testSetSkeleton(self, 0, 0)3684 3685 def test_2_0(self):3686 testSetSkeleton(self, 2, 0)3687 3688 def test_0_2(self):3689 testSetSkeleton(self, 0, 2)3690 def test_2_3(self):3691 testSetSkeleton(self, 2, 3)3692 def test_1_3(self):3693 testSetSkeleton(self, 1, 3)3694 def test_3_5(self):3695 testSetSkeleton(self, 3, 5)3696 class TestDFS_5x6_2_someHoles(unittest.TestCase):3697 strategies = list(DFSStrategy)3698 padFile = "./testData/maps/someHoles/map5x6_2.txt" 3699 def walkFunction(self):3700 return dfs3701 3702 def test_1_2(self):3703 testSetSkeleton(self, 1, 2)3704 def test_2_1(self):3705 testSetSkeleton(self, 2, 1)3706 3707 def test_0_1(self):3708 testSetSkeleton(self, 0, 1)3709 3710 def test_1_0(self):3711 testSetSkeleton(self, 1, 0)3712 def test_0_0(self):3713 testSetSkeleton(self, 0, 0)3714 3715 def test_2_0(self):3716 testSetSkeleton(self, 2, 0)3717 3718 def test_0_2(self):3719 testSetSkeleton(self, 0, 2)3720 def test_2_3(self):3721 testSetSkeleton(self, 2, 3)3722 def test_1_3(self):3723 testSetSkeleton(self, 1, 3)3724 3725 def test_2_5(self):3726 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]3727 testSetSkeleton(self, 2, 5, doNotTest)3728 class TestDFS_5x6_3_someHoles(unittest.TestCase):3729 strategies = list(DFSStrategy)3730 padFile = "./testData/maps/someHoles/map5x6_3.txt" 3731 def walkFunction(self):3732 return dfs3733 3734 def test_1_2(self):3735 testSetSkeleton(self, 1, 2)3736 def test_2_1(self):3737 testSetSkeleton(self, 2, 1)3738 3739 def test_0_1(self):3740 testSetSkeleton(self, 0, 1)3741 def test_1_0(self):3742 testSetSkeleton(self, 1, 0)3743 def test_0_0(self):3744 testSetSkeleton(self, 0, 0)3745 3746 def test_2_0(self):3747 testSetSkeleton(self, 2, 0)3748 3749 def test_0_2(self):3750 testSetSkeleton(self, 0, 2)3751 def test_2_3(self):3752 testSetSkeleton(self, 2, 3)3753 def test_1_4(self):3754 testSetSkeleton(self, 1, 4)3755 class TestDFS_5x6_4_someHoles(unittest.TestCase):3756 strategies = list(DFSStrategy)3757 padFile = "./testData/maps/someHoles/map5x6_4.txt" 3758 def walkFunction(self):3759 return dfs3760 3761 def test_1_2(self):3762 testSetSkeleton(self, 1, 2)3763 def test_2_1(self):3764 testSetSkeleton(self, 2, 1)3765 3766 def test_0_1(self):3767 testSetSkeleton(self, 0, 1)3768 """3769 def test_1_0(self):3770 testSetSkeleton(self, 1, 0)3771 """3772 def test_0_0(self):3773 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]3774 testSetSkeleton(self, 0, 0, doNotTest)3775 3776 """3777 def test_2_0(self):3778 testSetSkeleton(self, 2, 0)3779 """3780 3781 def test_0_2(self):3782 testSetSkeleton(self, 0, 2)3783 def test_2_2(self):3784 testSetSkeleton(self, 2, 2)3785 3786 def test_3_2(self):3787 testSetSkeleton(self, 3, 2)3788 def test_1_3(self):3789 testSetSkeleton(self, 1, 3)3790 class TestDFSLook_5x6_1_someHoles(unittest.TestCase):3791 strategies = list(DFSStrategy)3792 padFile = "./testData/maps/someHoles/map5x6_1.txt" 3793 def walkFunction(self):3794 return dfsLook3795 3796 def test_1_2(self):3797 testSetSkeleton(self, 1, 2)3798 def test_2_1(self):3799 testSetSkeleton(self, 2, 1)3800 3801 def test_0_1(self):3802 testSetSkeleton(self, 0, 1)3803 3804 def test_1_0(self):3805 testSetSkeleton(self, 1, 0)3806 def test_0_0(self):3807 testSetSkeleton(self, 0, 0)3808 3809 def test_2_0(self):3810 testSetSkeleton(self, 2, 0)3811 3812 def test_0_2(self):3813 testSetSkeleton(self, 0, 2)3814 def test_2_3(self):3815 testSetSkeleton(self, 2, 3)3816 def test_1_3(self):3817 testSetSkeleton(self, 1, 3)3818 def test_3_5(self):3819 testSetSkeleton(self, 3, 5)3820 class TestDFSLook_5x6_2_someHoles(unittest.TestCase):3821 strategies = list(DFSStrategy)3822 padFile = "./testData/maps/someHoles/map5x6_2.txt" 3823 def walkFunction(self):3824 return dfsLook3825 3826 def test_1_2(self):3827 testSetSkeleton(self, 1, 2)3828 def test_2_1(self):3829 testSetSkeleton(self, 2, 1)3830 3831 def test_0_1(self):3832 testSetSkeleton(self, 0, 1)3833 3834 def test_1_0(self):3835 testSetSkeleton(self, 1, 0)3836 def test_0_0(self):3837 testSetSkeleton(self, 0, 0)3838 3839 def test_2_0(self):3840 testSetSkeleton(self, 2, 0)3841 3842 def test_0_2(self):3843 testSetSkeleton(self, 0, 2)3844 def test_2_3(self):3845 testSetSkeleton(self, 2, 3)3846 def test_1_3(self):3847 testSetSkeleton(self, 1, 3)3848 3849 def test_2_5(self):3850 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]3851 testSetSkeleton(self, 2, 5, doNotTest)3852 class TestDFSLook_5x6_3_someHoles(unittest.TestCase):3853 strategies = list(DFSStrategy)3854 padFile = "./testData/maps/someHoles/map5x6_3.txt" 3855 def walkFunction(self):3856 return dfsLook3857 3858 def test_1_2(self):3859 testSetSkeleton(self, 1, 2)3860 def test_2_1(self):3861 testSetSkeleton(self, 2, 1)3862 3863 def test_0_1(self):3864 testSetSkeleton(self, 0, 1)3865 def test_1_0(self):3866 testSetSkeleton(self, 1, 0)3867 def test_0_0(self):3868 testSetSkeleton(self, 0, 0)3869 3870 def test_2_0(self):3871 testSetSkeleton(self, 2, 0)3872 3873 def test_0_2(self):3874 testSetSkeleton(self, 0, 2)3875 def test_2_3(self):3876 testSetSkeleton(self, 2, 3)3877 def test_1_4(self):3878 testSetSkeleton(self, 1, 4)3879 class TestDFSLook_5x6_4_someHoles(unittest.TestCase):3880 strategies = list(DFSStrategy)3881 padFile = "./testData/maps/someHoles/map5x6_4.txt" 3882 def walkFunction(self):3883 return dfsLook3884 3885 def test_1_2(self):3886 testSetSkeleton(self, 1, 2)3887 def test_2_1(self):3888 testSetSkeleton(self, 2, 1)3889 3890 def test_0_1(self):3891 testSetSkeleton(self, 0, 1)3892 """3893 def test_1_0(self):3894 testSetSkeleton(self, 1, 0)3895 """3896 def test_0_0(self):3897 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]3898 testSetSkeleton(self, 0, 0, doNotTest)3899 3900 """3901 def test_2_0(self):3902 testSetSkeleton(self, 2, 0)3903 """3904 3905 def test_0_2(self):3906 testSetSkeleton(self, 0, 2)3907 def test_2_2(self):3908 testSetSkeleton(self, 2, 2)3909 3910 def test_3_2(self):3911 testSetSkeleton(self, 3, 2)3912 def test_1_3(self):3913 testSetSkeleton(self, 1, 3)3914 class TestShortestBacktrack_5x6_1_someHoles(unittest.TestCase):3915 strategies = list(BacktrackStrategy)3916 padFile = "./testData/maps/someHoles/map5x6_1.txt" 3917 def walkFunction(self):3918 return shortestBacktrack3919 3920 def test_1_2(self):3921 testSetSkeleton(self, 1, 2)3922 def test_2_1(self):3923 testSetSkeleton(self, 2, 1)3924 3925 def test_0_1(self):3926 testSetSkeleton(self, 0, 1)3927 3928 def test_1_0(self):3929 testSetSkeleton(self, 1, 0)3930 def test_0_0(self):3931 testSetSkeleton(self, 0, 0)3932 3933 def test_2_0(self):3934 testSetSkeleton(self, 2, 0)3935 3936 def test_0_2(self):3937 testSetSkeleton(self, 0, 2)3938 def test_2_3(self):3939 testSetSkeleton(self, 2, 3)3940 def test_1_3(self):3941 testSetSkeleton(self, 1, 3)3942 def test_3_5(self):3943 testSetSkeleton(self, 3, 5)3944 class TestShortestBacktrack_5x6_2_someHoles(unittest.TestCase):3945 strategies = list(BacktrackStrategy)3946 padFile = "./testData/maps/someHoles/map5x6_2.txt" 3947 def walkFunction(self):3948 return shortestBacktrack3949 3950 def test_1_2(self):3951 testSetSkeleton(self, 1, 2)3952 def test_2_1(self):3953 testSetSkeleton(self, 2, 1)3954 3955 def test_0_1(self):3956 testSetSkeleton(self, 0, 1)3957 3958 def test_1_0(self):3959 testSetSkeleton(self, 1, 0)3960 def test_0_0(self):3961 testSetSkeleton(self, 0, 0)3962 3963 def test_2_0(self):3964 testSetSkeleton(self, 2, 0)3965 3966 def test_0_2(self):3967 testSetSkeleton(self, 0, 2)3968 def test_2_3(self):3969 testSetSkeleton(self, 2, 3)3970 def test_1_3(self):3971 testSetSkeleton(self, 1, 3)3972 3973 def test_2_5(self):3974 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]3975 testSetSkeleton(self, 2, 5, doNotTest)3976 class TestShortestBacktrack_5x6_3_someHoles(unittest.TestCase):3977 strategies = list(BacktrackStrategy)3978 padFile = "./testData/maps/someHoles/map5x6_3.txt" 3979 def walkFunction(self):3980 return shortestBacktrack3981 3982 def test_1_2(self):3983 testSetSkeleton(self, 1, 2)3984 def test_2_1(self):3985 testSetSkeleton(self, 2, 1)3986 3987 def test_0_1(self):3988 testSetSkeleton(self, 0, 1)3989 def test_1_0(self):3990 testSetSkeleton(self, 1, 0)3991 def test_0_0(self):3992 testSetSkeleton(self, 0, 0)3993 3994 def test_2_0(self):3995 testSetSkeleton(self, 2, 0)3996 3997 def test_0_2(self):3998 testSetSkeleton(self, 0, 2)3999 def test_2_3(self):4000 testSetSkeleton(self, 2, 3)4001 def test_1_4(self):4002 testSetSkeleton(self, 1, 4)4003 class TestShortestBacktrack_5x6_4_someHoles(unittest.TestCase):4004 strategies = list(BacktrackStrategy)4005 padFile = "./testData/maps/someHoles/map5x6_4.txt" 4006 def walkFunction(self):4007 return shortestBacktrack4008 4009 def test_1_2(self):4010 testSetSkeleton(self, 1, 2)4011 def test_2_1(self):4012 testSetSkeleton(self, 2, 1)4013 4014 def test_0_1(self):4015 testSetSkeleton(self, 0, 1)4016 """4017 def test_1_0(self):4018 testSetSkeleton(self, 1, 0)4019 """4020 def test_0_0(self):4021 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]4022 testSetSkeleton(self, 0, 0, doNotTest)4023 4024 """4025 def test_2_0(self):4026 testSetSkeleton(self, 2, 0)4027 """4028 4029 def test_0_2(self):4030 testSetSkeleton(self, 0, 2)4031 def test_2_2(self):4032 testSetSkeleton(self, 2, 2)4033 4034 def test_3_2(self):4035 testSetSkeleton(self, 3, 2)4036 def test_1_3(self):4037 testSetSkeleton(self, 1, 3)4038 class TestShortestBacktrackLook_5x6_1_someHoles(unittest.TestCase):4039 strategies = list(BacktrackStrategy)4040 padFile = "./testData/maps/someHoles/map5x6_1.txt" 4041 def walkFunction(self):4042 return shortestBacktrackLook4043 4044 def test_1_2(self):4045 testSetSkeleton(self, 1, 2)4046 def test_2_1(self):4047 testSetSkeleton(self, 2, 1)4048 4049 def test_0_1(self):4050 testSetSkeleton(self, 0, 1)4051 4052 def test_1_0(self):4053 testSetSkeleton(self, 1, 0)4054 def test_0_0(self):4055 testSetSkeleton(self, 0, 0)4056 4057 def test_2_0(self):4058 testSetSkeleton(self, 2, 0)4059 4060 def test_0_2(self):4061 testSetSkeleton(self, 0, 2)4062 def test_2_3(self):4063 testSetSkeleton(self, 2, 3)4064 def test_1_3(self):4065 testSetSkeleton(self, 1, 3)4066 def test_3_5(self):4067 testSetSkeleton(self, 3, 5)4068 class TestShortestBacktrackLook_5x6_2_someHoles(unittest.TestCase):4069 strategies = list(BacktrackStrategy)4070 padFile = "./testData/maps/someHoles/map5x6_2.txt" 4071 def walkFunction(self):4072 return shortestBacktrackLook4073 4074 def test_1_2(self):4075 testSetSkeleton(self, 1, 2)4076 def test_2_1(self):4077 testSetSkeleton(self, 2, 1)4078 4079 def test_0_1(self):4080 testSetSkeleton(self, 0, 1)4081 4082 def test_1_0(self):4083 testSetSkeleton(self, 1, 0)4084 def test_0_0(self):4085 testSetSkeleton(self, 0, 0)4086 4087 def test_2_0(self):4088 testSetSkeleton(self, 2, 0)4089 4090 def test_0_2(self):4091 testSetSkeleton(self, 0, 2)4092 def test_2_3(self):4093 testSetSkeleton(self, 2, 3)4094 def test_1_3(self):4095 testSetSkeleton(self, 1, 3)4096 4097 def test_2_5(self):4098 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]4099 testSetSkeleton(self, 2, 5, doNotTest)4100 class TestShortestBacktrackLook_5x6_3_someHoles(unittest.TestCase):4101 strategies = list(BacktrackStrategy)4102 padFile = "./testData/maps/someHoles/map5x6_3.txt" 4103 def walkFunction(self):4104 return shortestBacktrackLook4105 4106 def test_1_2(self):4107 testSetSkeleton(self, 1, 2)4108 def test_2_1(self):4109 testSetSkeleton(self, 2, 1)4110 4111 def test_0_1(self):4112 testSetSkeleton(self, 0, 1)4113 def test_1_0(self):4114 testSetSkeleton(self, 1, 0)4115 def test_0_0(self):4116 testSetSkeleton(self, 0, 0)4117 4118 def test_2_0(self):4119 testSetSkeleton(self, 2, 0)4120 4121 def test_0_2(self):4122 testSetSkeleton(self, 0, 2)4123 def test_2_3(self):4124 testSetSkeleton(self, 2, 3)4125 def test_1_4(self):4126 testSetSkeleton(self, 1, 4)4127 class TestShortestBacktrackLook_5x6_4_someHoles(unittest.TestCase):4128 strategies = list(BacktrackStrategy)4129 padFile = "./testData/maps/someHoles/map5x6_4.txt" 4130 def walkFunction(self):4131 return shortestBacktrackLook4132 4133 def test_1_2(self):4134 testSetSkeleton(self, 1, 2)4135 def test_2_1(self):4136 testSetSkeleton(self, 2, 1)4137 4138 def test_0_1(self):4139 testSetSkeleton(self, 0, 1)4140 """4141 def test_1_0(self):4142 testSetSkeleton(self, 1, 0)4143 """4144 def test_0_0(self):4145 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]4146 testSetSkeleton(self, 0, 0, doNotTest)4147 4148 """4149 def test_2_0(self):4150 testSetSkeleton(self, 2, 0)4151 """4152 4153 def test_0_2(self):4154 testSetSkeleton(self, 0, 2)4155 def test_2_2(self):4156 testSetSkeleton(self, 2, 2)4157 4158 def test_3_2(self):4159 testSetSkeleton(self, 3, 2)4160 def test_1_3(self):4161 testSetSkeleton(self, 1, 3)4162 class TestDFS_7x9_1_someHoles(unittest.TestCase):4163 strategies = list(DFSStrategy)4164 padFile = "./testData/maps/someHoles/map7x9_1.txt" 4165 def walkFunction(self):4166 return dfs4167 4168 def test_1_2(self):4169 testSetSkeleton(self, 1, 2)4170 4171 def test_2_1(self):4172 testSetSkeleton(self, 2, 1)4173 4174 def test_0_1(self):4175 testSetSkeleton(self, 0, 1)4176 4177 def test_1_0(self):4178 testSetSkeleton(self, 1, 0)4179 def test_0_0(self):4180 testSetSkeleton(self, 0, 0)4181 def test_2_0(self):4182 testSetSkeleton(self, 2, 0)4183 4184 def test_0_2(self):4185 testSetSkeleton(self, 0, 2)4186 def test_2_4(self):4187 testSetSkeleton(self, 2, 4)4188 def test_1_3(self):4189 testSetSkeleton(self, 1, 3)4190 def test_5_2(self):4191 testSetSkeleton(self, 5, 2)4192 class TestDFS_7x9_2_someHoles(unittest.TestCase):4193 strategies = list(DFSStrategy)4194 padFile = "./testData/maps/someHoles/map7x9_2.txt" 4195 def walkFunction(self):4196 return dfs4197 4198 def test_1_2(self):4199 testSetSkeleton(self, 1, 2)4200 4201 def test_2_1(self):4202 testSetSkeleton(self, 2, 1)4203 4204 def test_0_1(self):4205 testSetSkeleton(self, 0, 1)4206 def test_0_0(self):4207 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]4208 testSetSkeleton(self, 0, 0, doNotTest)4209 def test_2_0(self):4210 testSetSkeleton(self, 2, 0)4211 4212 def test_0_2(self):4213 testSetSkeleton(self, 0, 2)4214 def test_2_3(self):4215 testSetSkeleton(self, 2, 3)4216 def test_1_3(self):4217 testSetSkeleton(self, 1, 3)4218 def test_5_2(self):4219 testSetSkeleton(self, 5, 2)4220 class TestDFS_7x9_3_someHoles(unittest.TestCase):4221 strategies = list(DFSStrategy)4222 padFile = "./testData/maps/someHoles/map7x9_3.txt" 4223 def walkFunction(self):4224 return dfs4225 4226 def test_1_2(self):4227 testSetSkeleton(self, 1, 2)4228 4229 def test_2_1(self):4230 testSetSkeleton(self, 2, 1)4231 4232 def test_0_1(self):4233 testSetSkeleton(self, 0, 1)4234 4235 def test_1_0(self):4236 testSetSkeleton(self, 1, 0)4237 def test_0_0(self):4238 testSetSkeleton(self, 0, 0)4239 def test_2_0(self):4240 testSetSkeleton(self, 2, 0)4241 4242 def test_0_2(self):4243 testSetSkeleton(self, 0, 2)4244 def test_2_3(self):4245 testSetSkeleton(self, 2, 3)4246 def test_5_2(self):4247 testSetSkeleton(self, 5, 2)4248 4249 def test_5_5(self):4250 testSetSkeleton(self, 5, 5)4251 class TestDFS_7x9_4_someHoles(unittest.TestCase):4252 strategies = list(DFSStrategy)4253 padFile = "./testData/maps/someHoles/map7x9_4.txt" 4254 def walkFunction(self):4255 return dfs4256 4257 def test_1_2(self):4258 testSetSkeleton(self, 1, 2)4259 4260 def test_0_1(self):4261 testSetSkeleton(self, 0, 1)4262 4263 def test_1_0(self):4264 testSetSkeleton(self, 1, 0)4265 def test_0_0(self):4266 testSetSkeleton(self, 0, 0)4267 def test_2_0(self):4268 testSetSkeleton(self, 2, 0)4269 4270 """4271 def test_0_2(self):4272 testSetSkeleton(self, 0, 2)4273 """4274 def test_2_4(self):4275 testSetSkeleton(self, 2, 4)4276 def test_1_3(self):4277 testSetSkeleton(self, 1, 3)4278 def test_5_2(self):4279 testSetSkeleton(self, 5, 2)4280 def test_5_5(self):4281 testSetSkeleton(self, 5, 5)4282 4283 4284 class TestDFSLook_7x9_1_someHoles(unittest.TestCase):4285 strategies = list(DFSStrategy)4286 padFile = "./testData/maps/someHoles/map7x9_1.txt" 4287 def walkFunction(self):4288 return dfsLook4289 4290 def test_1_2(self):4291 testSetSkeleton(self, 1, 2)4292 4293 def test_2_1(self):4294 testSetSkeleton(self, 2, 1)4295 4296 def test_0_1(self):4297 testSetSkeleton(self, 0, 1)4298 4299 def test_1_0(self):4300 testSetSkeleton(self, 1, 0)4301 def test_0_0(self):4302 testSetSkeleton(self, 0, 0)4303 def test_2_0(self):4304 testSetSkeleton(self, 2, 0)4305 4306 def test_0_2(self):4307 testSetSkeleton(self, 0, 2)4308 def test_2_4(self):4309 testSetSkeleton(self, 2, 4)4310 def test_1_3(self):4311 testSetSkeleton(self, 1, 3)4312 def test_5_2(self):4313 testSetSkeleton(self, 5, 2)4314 class TestDFSLook_7x9_2_someHoles(unittest.TestCase):4315 strategies = list(DFSStrategy)4316 padFile = "./testData/maps/someHoles/map7x9_2.txt" 4317 def walkFunction(self):4318 return dfsLook4319 4320 def test_1_2(self):4321 testSetSkeleton(self, 1, 2)4322 4323 def test_2_1(self):4324 testSetSkeleton(self, 2, 1)4325 4326 def test_0_1(self):4327 testSetSkeleton(self, 0, 1)4328 def test_0_0(self):4329 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]4330 testSetSkeleton(self, 0, 0, doNotTest)4331 def test_2_0(self):4332 testSetSkeleton(self, 2, 0)4333 4334 def test_0_2(self):4335 testSetSkeleton(self, 0, 2)4336 def test_2_3(self):4337 testSetSkeleton(self, 2, 3)4338 def test_1_3(self):4339 testSetSkeleton(self, 1, 3)4340 def test_5_2(self):4341 testSetSkeleton(self, 5, 2)4342 class TestDFSLook_7x9_3_someHoles(unittest.TestCase):4343 strategies = list(DFSStrategy)4344 padFile = "./testData/maps/someHoles/map7x9_3.txt" 4345 def walkFunction(self):4346 return dfsLook4347 4348 def test_1_2(self):4349 testSetSkeleton(self, 1, 2)4350 4351 def test_2_1(self):4352 testSetSkeleton(self, 2, 1)4353 4354 def test_0_1(self):4355 testSetSkeleton(self, 0, 1)4356 4357 def test_1_0(self):4358 testSetSkeleton(self, 1, 0)4359 def test_0_0(self):4360 testSetSkeleton(self, 0, 0)4361 def test_2_0(self):4362 testSetSkeleton(self, 2, 0)4363 4364 def test_0_2(self):4365 testSetSkeleton(self, 0, 2)4366 def test_2_3(self):4367 testSetSkeleton(self, 2, 3)4368 def test_5_2(self):4369 testSetSkeleton(self, 5, 2)4370 4371 def test_5_5(self):4372 testSetSkeleton(self, 5, 5)4373 class TestDFSLook_7x9_4_someHoles(unittest.TestCase):4374 strategies = list(DFSStrategy)4375 padFile = "./testData/maps/someHoles/map7x9_4.txt" 4376 def walkFunction(self):4377 return dfsLook4378 4379 def test_1_2(self):4380 testSetSkeleton(self, 1, 2)4381 4382 def test_0_1(self):4383 testSetSkeleton(self, 0, 1)4384 4385 def test_1_0(self):4386 testSetSkeleton(self, 1, 0)4387 def test_0_0(self):4388 testSetSkeleton(self, 0, 0)4389 def test_2_0(self):4390 testSetSkeleton(self, 2, 0)4391 4392 """4393 def test_0_2(self):4394 testSetSkeleton(self, 0, 2)4395 """4396 def test_2_4(self):4397 testSetSkeleton(self, 2, 4)4398 def test_1_3(self):4399 testSetSkeleton(self, 1, 3)4400 def test_5_2(self):4401 testSetSkeleton(self, 5, 2)4402 def test_5_5(self):4403 testSetSkeleton(self, 5, 5)4404 class TestShortestBacktrack_7x9_1_someHoles(unittest.TestCase):4405 strategies = list(BacktrackStrategy)4406 padFile = "./testData/maps/someHoles/map7x9_1.txt" 4407 def walkFunction(self):4408 return shortestBacktrack4409 4410 def test_1_2(self):4411 testSetSkeleton(self, 1, 2)4412 4413 def test_2_1(self):4414 testSetSkeleton(self, 2, 1)4415 4416 def test_0_1(self):4417 testSetSkeleton(self, 0, 1)4418 4419 def test_1_0(self):4420 testSetSkeleton(self, 1, 0)4421 def test_0_0(self):4422 testSetSkeleton(self, 0, 0)4423 def test_2_0(self):4424 testSetSkeleton(self, 2, 0)4425 4426 def test_0_2(self):4427 testSetSkeleton(self, 0, 2)4428 def test_2_4(self):4429 testSetSkeleton(self, 2, 4)4430 def test_1_3(self):4431 testSetSkeleton(self, 1, 3)4432 def test_5_2(self):4433 testSetSkeleton(self, 5, 2)4434 class TestShortestBacktrack_7x9_2_someHoles(unittest.TestCase):4435 strategies = list(BacktrackStrategy)4436 padFile = "./testData/maps/someHoles/map7x9_2.txt" 4437 def walkFunction(self):4438 return shortestBacktrack4439 4440 def test_1_2(self):4441 testSetSkeleton(self, 1, 2)4442 4443 def test_2_1(self):4444 testSetSkeleton(self, 2, 1)4445 4446 def test_0_1(self):4447 testSetSkeleton(self, 0, 1)4448 def test_0_0(self):4449 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]4450 testSetSkeleton(self, 0, 0, doNotTest)4451 def test_2_0(self):4452 testSetSkeleton(self, 2, 0)4453 4454 def test_0_2(self):4455 testSetSkeleton(self, 0, 2)4456 def test_2_3(self):4457 testSetSkeleton(self, 2, 3)4458 def test_1_3(self):4459 testSetSkeleton(self, 1, 3)4460 def test_5_2(self):4461 testSetSkeleton(self, 5, 2)4462 class TestShortestBacktrack_7x9_3_someHoles(unittest.TestCase):4463 strategies = list(BacktrackStrategy)4464 padFile = "./testData/maps/someHoles/map7x9_3.txt" 4465 def walkFunction(self):4466 return shortestBacktrack4467 4468 def test_1_2(self):4469 testSetSkeleton(self, 1, 2)4470 4471 def test_2_1(self):4472 testSetSkeleton(self, 2, 1)4473 4474 def test_0_1(self):4475 testSetSkeleton(self, 0, 1)4476 4477 def test_1_0(self):4478 testSetSkeleton(self, 1, 0)4479 def test_0_0(self):4480 testSetSkeleton(self, 0, 0)4481 def test_2_0(self):4482 testSetSkeleton(self, 2, 0)4483 4484 def test_0_2(self):4485 testSetSkeleton(self, 0, 2)4486 def test_2_3(self):4487 testSetSkeleton(self, 2, 3)4488 def test_5_2(self):4489 testSetSkeleton(self, 5, 2)4490 4491 def test_5_5(self):4492 testSetSkeleton(self, 5, 5)4493 class TestShortestBacktrack_7x9_4_someHoles(unittest.TestCase):4494 strategies = list(BacktrackStrategy)4495 padFile = "./testData/maps/someHoles/map7x9_4.txt" 4496 def walkFunction(self):4497 return shortestBacktrack4498 4499 def test_1_2(self):4500 testSetSkeleton(self, 1, 2)4501 4502 def test_0_1(self):4503 testSetSkeleton(self, 0, 1)4504 4505 def test_1_0(self):4506 testSetSkeleton(self, 1, 0)4507 def test_0_0(self):4508 testSetSkeleton(self, 0, 0)4509 def test_2_0(self):4510 testSetSkeleton(self, 2, 0)4511 4512 """4513 def test_0_2(self):4514 testSetSkeleton(self, 0, 2)4515 """4516 def test_2_4(self):4517 testSetSkeleton(self, 2, 4)4518 def test_1_3(self):4519 testSetSkeleton(self, 1, 3)4520 def test_5_2(self):4521 testSetSkeleton(self, 5, 2)4522 def test_5_5(self):4523 testSetSkeleton(self, 5, 5)4524 4525 4526 class TestShortestBacktrackLook_7x9_1_someHoles(unittest.TestCase):4527 strategies = list(BacktrackStrategy)4528 padFile = "./testData/maps/someHoles/map7x9_1.txt" 4529 def walkFunction(self):4530 return shortestBacktrackLook4531 4532 def test_1_2(self):4533 testSetSkeleton(self, 1, 2)4534 4535 def test_2_1(self):4536 testSetSkeleton(self, 2, 1)4537 4538 def test_0_1(self):4539 testSetSkeleton(self, 0, 1)4540 4541 def test_1_0(self):4542 testSetSkeleton(self, 1, 0)4543 def test_0_0(self):4544 testSetSkeleton(self, 0, 0)4545 def test_2_0(self):4546 testSetSkeleton(self, 2, 0)4547 4548 def test_0_2(self):4549 testSetSkeleton(self, 0, 2)4550 def test_2_4(self):4551 testSetSkeleton(self, 2, 4)4552 def test_1_3(self):4553 testSetSkeleton(self, 1, 3)4554 def test_5_2(self):4555 testSetSkeleton(self, 5, 2)4556 class TestShortestBacktrackLook_7x9_2_someHoles(unittest.TestCase):4557 strategies = list(BacktrackStrategy)4558 padFile = "./testData/maps/someHoles/map7x9_2.txt" 4559 def walkFunction(self):4560 return shortestBacktrackLook4561 4562 def test_1_2(self):4563 testSetSkeleton(self, 1, 2)4564 4565 def test_2_1(self):4566 testSetSkeleton(self, 2, 1)4567 4568 def test_0_1(self):4569 testSetSkeleton(self, 0, 1)4570 def test_0_0(self):4571 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]4572 testSetSkeleton(self, 0, 0, doNotTest)4573 def test_2_0(self):4574 testSetSkeleton(self, 2, 0)4575 4576 def test_0_2(self):4577 testSetSkeleton(self, 0, 2)4578 def test_2_3(self):4579 testSetSkeleton(self, 2, 3)4580 def test_1_3(self):4581 testSetSkeleton(self, 1, 3)4582 def test_5_2(self):4583 testSetSkeleton(self, 5, 2)4584 class TestShortestBacktrackLook_7x9_3_someHoles(unittest.TestCase):4585 strategies = list(BacktrackStrategy)4586 padFile = "./testData/maps/someHoles/map7x9_3.txt" 4587 def walkFunction(self):4588 return shortestBacktrackLook4589 4590 def test_1_2(self):4591 testSetSkeleton(self, 1, 2)4592 4593 def test_2_1(self):4594 testSetSkeleton(self, 2, 1)4595 4596 def test_0_1(self):4597 testSetSkeleton(self, 0, 1)4598 4599 def test_1_0(self):4600 testSetSkeleton(self, 1, 0)4601 def test_0_0(self):4602 testSetSkeleton(self, 0, 0)4603 def test_2_0(self):4604 testSetSkeleton(self, 2, 0)4605 4606 def test_0_2(self):4607 testSetSkeleton(self, 0, 2)4608 def test_2_3(self):4609 testSetSkeleton(self, 2, 3)4610 def test_5_2(self):4611 testSetSkeleton(self, 5, 2)4612 4613 def test_5_5(self):4614 testSetSkeleton(self, 5, 5)4615 class TestShortestBacktrackLook_7x9_4_someHoles(unittest.TestCase):4616 strategies = list(BacktrackStrategy)4617 padFile = "./testData/maps/someHoles/map7x9_4.txt" 4618 def walkFunction(self):4619 return shortestBacktrackLook4620 4621 def test_1_2(self):4622 testSetSkeleton(self, 1, 2)4623 4624 def test_0_1(self):4625 testSetSkeleton(self, 0, 1)4626 4627 def test_1_0(self):4628 testSetSkeleton(self, 1, 0)4629 def test_0_0(self):4630 testSetSkeleton(self, 0, 0)4631 def test_2_0(self):4632 testSetSkeleton(self, 2, 0)4633 4634 """4635 def test_0_2(self):4636 testSetSkeleton(self, 0, 2)4637 """4638 def test_2_4(self):4639 testSetSkeleton(self, 2, 4)4640 def test_1_3(self):4641 testSetSkeleton(self, 1, 3)4642 def test_5_2(self):4643 testSetSkeleton(self, 5, 2)4644 def test_5_5(self):4645 testSetSkeleton(self, 5, 5)4646 4647 4648 class TestDFS_9x4_1_someHoles(unittest.TestCase):4649 strategies = list(DFSStrategy)4650 padFile = "./testData/maps/someHoles/map9x4_1.txt" 4651 def walkFunction(self):4652 return dfs4653 4654 def test_1_2(self):4655 testSetSkeleton(self, 1, 2)4656 4657 """4658 def test_0_1(self):4659 testSetSkeleton(self, 0, 1)4660 """4661 4662 def test_1_0(self):4663 testSetSkeleton(self, 1, 0)4664 def test_0_0(self):4665 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]4666 testSetSkeleton(self, 0, 0, doNotTest)4667 def test_2_0(self):4668 testSetSkeleton(self, 2, 0)4669 4670 """4671 def test_0_2(self):4672 testSetSkeleton(self, 0, 2)4673 """4674 """4675 def test_2_3(self):4676 testSetSkeleton(self, 2, 3)4677 """4678 def test_1_3(self):4679 testSetSkeleton(self, 1, 3)4680 def test_5_2(self):4681 testSetSkeleton(self, 5, 2)4682 def test_2_2(self):4683 testSetSkeleton(self, 2, 2)4684 class TestDFS_9x4_2_someHoles(unittest.TestCase):4685 strategies = list(DFSStrategy)4686 padFile = "./testData/maps/someHoles/map9x4_2.txt" 4687 def walkFunction(self):4688 return dfs4689 4690 def test_1_2(self):4691 testSetSkeleton(self, 1, 2)4692 4693 def test_0_1(self):4694 testSetSkeleton(self, 0, 1)4695 4696 """4697 def test_1_0(self):4698 testSetSkeleton(self, 1, 0)4699 """4700 def test_0_0(self):4701 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]4702 testSetSkeleton(self, 0, 0, doNotTest)4703 """4704 def test_2_0(self):4705 testSetSkeleton(self, 2, 0)4706 """4707 def test_3_0(self):4708 testSetSkeleton(self, 3, 0)4709 4710 def test_0_2(self):4711 testSetSkeleton(self, 0, 2)4712 def test_2_3(self):4713 testSetSkeleton(self, 2, 3)4714 def test_1_3(self):4715 testSetSkeleton(self, 1, 3)4716 def test_5_2(self):4717 testSetSkeleton(self, 5, 2)4718 def test_2_2(self):4719 testSetSkeleton(self, 2, 2)4720 class TestDFS_9x4_3_someHoles(unittest.TestCase):4721 strategies = list(DFSStrategy)4722 padFile = "./testData/maps/someHoles/map9x4_3.txt" 4723 def walkFunction(self):4724 return dfs4725 4726 def test_1_2(self):4727 testSetSkeleton(self, 1, 2)4728 4729 def test_0_1(self):4730 testSetSkeleton(self, 0, 1)4731 4732 def test_1_0(self):4733 testSetSkeleton(self, 1, 0)4734 def test_0_0(self):4735 testSetSkeleton(self, 0, 0)4736 def test_2_0(self):4737 testSetSkeleton(self, 2, 0)4738 4739 def test_0_2(self):4740 testSetSkeleton(self, 0, 2)4741 def test_2_3(self):4742 testSetSkeleton(self, 2, 3)4743 def test_1_3(self):4744 testSetSkeleton(self, 1, 3)4745 def test_5_3(self):4746 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]4747 testSetSkeleton(self, 5, 3, doNotTest)4748 def test_2_2(self):4749 testSetSkeleton(self, 2, 2)4750 class TestDFS_9x4_4_someHoles(unittest.TestCase):4751 strategies = list(DFSStrategy)4752 padFile = "./testData/maps/someHoles/map9x4_4.txt" 4753 def walkFunction(self):4754 return dfs4755 4756 def test_1_2(self):4757 testSetSkeleton(self, 1, 2)4758 4759 def test_0_1(self):4760 testSetSkeleton(self, 0, 1)4761 4762 def test_1_0(self):4763 testSetSkeleton(self, 1, 0)4764 def test_0_0(self):4765 testSetSkeleton(self, 0, 0)4766 def test_2_0(self):4767 testSetSkeleton(self, 2, 0)4768 4769 def test_0_2(self):4770 testSetSkeleton(self, 0, 2)4771 def test_2_3(self):4772 testSetSkeleton(self, 2, 3)4773 def test_1_3(self):4774 testSetSkeleton(self, 1, 3)4775 def test_5_2(self):4776 testSetSkeleton(self, 5, 2)4777 def test_2_2(self):4778 testSetSkeleton(self, 2, 2)4779 class TestDFSLook_9x4_1_someHoles(unittest.TestCase):4780 strategies = list(DFSStrategy)4781 padFile = "./testData/maps/someHoles/map9x4_1.txt" 4782 def walkFunction(self):4783 return dfsLook4784 4785 def test_1_2(self):4786 testSetSkeleton(self, 1, 2)4787 4788 """4789 def test_0_1(self):4790 testSetSkeleton(self, 0, 1)4791 """4792 4793 def test_1_0(self):4794 testSetSkeleton(self, 1, 0)4795 def test_0_0(self):4796 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]4797 testSetSkeleton(self, 0, 0, doNotTest)4798 def test_2_0(self):4799 testSetSkeleton(self, 2, 0)4800 4801 """4802 def test_0_2(self):4803 testSetSkeleton(self, 0, 2)4804 """4805 """4806 def test_2_3(self):4807 testSetSkeleton(self, 2, 3)4808 """4809 def test_1_3(self):4810 testSetSkeleton(self, 1, 3)4811 def test_5_2(self):4812 testSetSkeleton(self, 5, 2)4813 def test_2_2(self):4814 testSetSkeleton(self, 2, 2)4815 class TestDFSLook_9x4_2_someHoles(unittest.TestCase):4816 strategies = list(DFSStrategy)4817 padFile = "./testData/maps/someHoles/map9x4_2.txt" 4818 def walkFunction(self):4819 return dfsLook4820 4821 def test_1_2(self):4822 testSetSkeleton(self, 1, 2)4823 4824 def test_0_1(self):4825 testSetSkeleton(self, 0, 1)4826 4827 """4828 def test_1_0(self):4829 testSetSkeleton(self, 1, 0)4830 """4831 def test_0_0(self):4832 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]4833 testSetSkeleton(self, 0, 0, doNotTest)4834 """4835 def test_2_0(self):4836 testSetSkeleton(self, 2, 0)4837 """4838 def test_3_0(self):4839 testSetSkeleton(self, 3, 0)4840 4841 def test_0_2(self):4842 testSetSkeleton(self, 0, 2)4843 def test_2_3(self):4844 testSetSkeleton(self, 2, 3)4845 def test_1_3(self):4846 testSetSkeleton(self, 1, 3)4847 def test_5_2(self):4848 testSetSkeleton(self, 5, 2)4849 def test_2_2(self):4850 testSetSkeleton(self, 2, 2)4851 class TestDFSLook_9x4_3_someHoles(unittest.TestCase):4852 strategies = list(DFSStrategy)4853 padFile = "./testData/maps/someHoles/map9x4_3.txt" 4854 def walkFunction(self):4855 return dfsLook4856 4857 def test_1_2(self):4858 testSetSkeleton(self, 1, 2)4859 4860 def test_0_1(self):4861 testSetSkeleton(self, 0, 1)4862 4863 def test_1_0(self):4864 testSetSkeleton(self, 1, 0)4865 def test_0_0(self):4866 testSetSkeleton(self, 0, 0)4867 def test_2_0(self):4868 testSetSkeleton(self, 2, 0)4869 4870 def test_0_2(self):4871 testSetSkeleton(self, 0, 2)4872 def test_2_3(self):4873 testSetSkeleton(self, 2, 3)4874 def test_1_3(self):4875 testSetSkeleton(self, 1, 3)4876 def test_5_3(self):4877 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]4878 testSetSkeleton(self, 5, 3, doNotTest)4879 def test_2_2(self):4880 testSetSkeleton(self, 2, 2)4881 class TestDFSLook_9x4_4_someHoles(unittest.TestCase):4882 strategies = list(DFSStrategy)4883 padFile = "./testData/maps/someHoles/map9x4_4.txt" 4884 def walkFunction(self):4885 return dfsLook4886 4887 def test_1_2(self):4888 testSetSkeleton(self, 1, 2)4889 4890 def test_0_1(self):4891 testSetSkeleton(self, 0, 1)4892 4893 def test_1_0(self):4894 testSetSkeleton(self, 1, 0)4895 def test_0_0(self):4896 testSetSkeleton(self, 0, 0)4897 def test_2_0(self):4898 testSetSkeleton(self, 2, 0)4899 4900 def test_0_2(self):4901 testSetSkeleton(self, 0, 2)4902 def test_2_3(self):4903 testSetSkeleton(self, 2, 3)4904 def test_1_3(self):4905 testSetSkeleton(self, 1, 3)4906 def test_5_2(self):4907 testSetSkeleton(self, 5, 2)4908 def test_2_2(self):4909 testSetSkeleton(self, 2, 2)4910 class TestShortestBacktrack_9x4_1_someHoles(unittest.TestCase):4911 strategies = list(BacktrackStrategy)4912 padFile = "./testData/maps/someHoles/map9x4_1.txt" 4913 def walkFunction(self):4914 return shortestBacktrack4915 4916 def test_1_2(self):4917 testSetSkeleton(self, 1, 2)4918 4919 """4920 def test_0_1(self):4921 testSetSkeleton(self, 0, 1)4922 """4923 4924 def test_1_0(self):4925 testSetSkeleton(self, 1, 0)4926 def test_0_0(self):4927 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]4928 testSetSkeleton(self, 0, 0, doNotTest)4929 def test_2_0(self):4930 testSetSkeleton(self, 2, 0)4931 4932 """4933 def test_0_2(self):4934 testSetSkeleton(self, 0, 2)4935 """4936 """4937 def test_2_3(self):4938 testSetSkeleton(self, 2, 3)4939 """4940 def test_1_3(self):4941 testSetSkeleton(self, 1, 3)4942 def test_5_2(self):4943 testSetSkeleton(self, 5, 2)4944 def test_2_2(self):4945 testSetSkeleton(self, 2, 2)4946 class TestShortestBacktrack_9x4_2_someHoles(unittest.TestCase):4947 strategies = list(BacktrackStrategy)4948 padFile = "./testData/maps/someHoles/map9x4_2.txt" 4949 def walkFunction(self):4950 return shortestBacktrack4951 4952 def test_1_2(self):4953 testSetSkeleton(self, 1, 2)4954 4955 def test_0_1(self):4956 testSetSkeleton(self, 0, 1)4957 4958 """4959 def test_1_0(self):4960 testSetSkeleton(self, 1, 0)4961 """4962 def test_0_0(self):4963 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]4964 testSetSkeleton(self, 0, 0, doNotTest)4965 """4966 def test_2_0(self):4967 testSetSkeleton(self, 2, 0)4968 """4969 def test_3_0(self):4970 testSetSkeleton(self, 3, 0)4971 4972 def test_0_2(self):4973 testSetSkeleton(self, 0, 2)4974 def test_2_3(self):4975 testSetSkeleton(self, 2, 3)4976 def test_1_3(self):4977 testSetSkeleton(self, 1, 3)4978 def test_5_2(self):4979 testSetSkeleton(self, 5, 2)4980 def test_2_2(self):4981 testSetSkeleton(self, 2, 2)4982 class TestShortestBacktrack_9x4_3_someHoles(unittest.TestCase):4983 strategies = list(BacktrackStrategy)4984 padFile = "./testData/maps/someHoles/map9x4_3.txt" 4985 def walkFunction(self):4986 return shortestBacktrack4987 4988 def test_1_2(self):4989 testSetSkeleton(self, 1, 2)4990 4991 def test_0_1(self):4992 testSetSkeleton(self, 0, 1)4993 4994 def test_1_0(self):4995 testSetSkeleton(self, 1, 0)4996 def test_0_0(self):4997 testSetSkeleton(self, 0, 0)4998 def test_2_0(self):4999 testSetSkeleton(self, 2, 0)5000 5001 def test_0_2(self):5002 testSetSkeleton(self, 0, 2)5003 def test_2_3(self):5004 testSetSkeleton(self, 2, 3)5005 def test_1_3(self):5006 testSetSkeleton(self, 1, 3)5007 def test_5_3(self):5008 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5009 testSetSkeleton(self, 5, 3, doNotTest)5010 def test_2_2(self):5011 testSetSkeleton(self, 2, 2)5012 class TestShortestBacktrack_9x4_4_someHoles(unittest.TestCase):5013 strategies = list(BacktrackStrategy)5014 padFile = "./testData/maps/someHoles/map9x4_4.txt" 5015 def walkFunction(self):5016 return shortestBacktrack5017 5018 def test_1_2(self):5019 testSetSkeleton(self, 1, 2)5020 5021 def test_0_1(self):5022 testSetSkeleton(self, 0, 1)5023 5024 def test_1_0(self):5025 testSetSkeleton(self, 1, 0)5026 def test_0_0(self):5027 testSetSkeleton(self, 0, 0)5028 def test_2_0(self):5029 testSetSkeleton(self, 2, 0)5030 5031 def test_0_2(self):5032 testSetSkeleton(self, 0, 2)5033 def test_2_3(self):5034 testSetSkeleton(self, 2, 3)5035 def test_1_3(self):5036 testSetSkeleton(self, 1, 3)5037 def test_5_2(self):5038 testSetSkeleton(self, 5, 2)5039 def test_2_2(self):5040 testSetSkeleton(self, 2, 2)5041 class TestShortestBacktrackLook_9x4_1_someHoles(unittest.TestCase):5042 strategies = list(BacktrackStrategy)5043 padFile = "./testData/maps/someHoles/map9x4_1.txt" 5044 def walkFunction(self):5045 return shortestBacktrackLook5046 5047 def test_1_2(self):5048 testSetSkeleton(self, 1, 2)5049 5050 """5051 def test_0_1(self):5052 testSetSkeleton(self, 0, 1)5053 """5054 5055 def test_1_0(self):5056 testSetSkeleton(self, 1, 0)5057 def test_0_0(self):5058 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5059 testSetSkeleton(self, 0, 0, doNotTest)5060 def test_2_0(self):5061 testSetSkeleton(self, 2, 0)5062 5063 """5064 def test_0_2(self):5065 testSetSkeleton(self, 0, 2)5066 """5067 """5068 def test_2_3(self):5069 testSetSkeleton(self, 2, 3)5070 """5071 def test_1_3(self):5072 testSetSkeleton(self, 1, 3)5073 def test_5_2(self):5074 testSetSkeleton(self, 5, 2)5075 def test_2_2(self):5076 testSetSkeleton(self, 2, 2)5077 class TestShortestBacktrackLook_9x4_2_someHoles(unittest.TestCase):5078 strategies = list(BacktrackStrategy)5079 padFile = "./testData/maps/someHoles/map9x4_2.txt" 5080 def walkFunction(self):5081 return shortestBacktrackLook5082 5083 def test_1_2(self):5084 testSetSkeleton(self, 1, 2)5085 5086 def test_0_1(self):5087 testSetSkeleton(self, 0, 1)5088 5089 """5090 def test_1_0(self):5091 testSetSkeleton(self, 1, 0)5092 """5093 def test_0_0(self):5094 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5095 testSetSkeleton(self, 0, 0, doNotTest)5096 """5097 def test_2_0(self):5098 testSetSkeleton(self, 2, 0)5099 """5100 def test_3_0(self):5101 testSetSkeleton(self, 3, 0)5102 5103 def test_0_2(self):5104 testSetSkeleton(self, 0, 2)5105 def test_2_3(self):5106 testSetSkeleton(self, 2, 3)5107 def test_1_3(self):5108 testSetSkeleton(self, 1, 3)5109 def test_5_2(self):5110 testSetSkeleton(self, 5, 2)5111 def test_2_2(self):5112 testSetSkeleton(self, 2, 2)5113 class TestShortestBacktrackLook_9x4_3_someHoles(unittest.TestCase):5114 strategies = list(BacktrackStrategy)5115 padFile = "./testData/maps/someHoles/map9x4_3.txt" 5116 def walkFunction(self):5117 return shortestBacktrackLook5118 5119 def test_1_2(self):5120 testSetSkeleton(self, 1, 2)5121 5122 def test_0_1(self):5123 testSetSkeleton(self, 0, 1)5124 5125 def test_1_0(self):5126 testSetSkeleton(self, 1, 0)5127 def test_0_0(self):5128 testSetSkeleton(self, 0, 0)5129 def test_2_0(self):5130 testSetSkeleton(self, 2, 0)5131 5132 def test_0_2(self):5133 testSetSkeleton(self, 0, 2)5134 def test_2_3(self):5135 testSetSkeleton(self, 2, 3)5136 def test_1_3(self):5137 testSetSkeleton(self, 1, 3)5138 def test_5_3(self):5139 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5140 testSetSkeleton(self, 5, 3, doNotTest)5141 def test_2_2(self):5142 testSetSkeleton(self, 2, 2)5143 class TestShortestBacktrackLook_9x4_4_someHoles(unittest.TestCase):5144 strategies = list(BacktrackStrategy)5145 padFile = "./testData/maps/someHoles/map9x4_4.txt" 5146 def walkFunction(self):5147 return shortestBacktrackLook5148 5149 def test_1_2(self):5150 testSetSkeleton(self, 1, 2)5151 5152 def test_0_1(self):5153 testSetSkeleton(self, 0, 1)5154 5155 def test_1_0(self):5156 testSetSkeleton(self, 1, 0)5157 def test_0_0(self):5158 testSetSkeleton(self, 0, 0)5159 def test_2_0(self):5160 testSetSkeleton(self, 2, 0)5161 5162 def test_0_2(self):5163 testSetSkeleton(self, 0, 2)5164 def test_2_3(self):5165 testSetSkeleton(self, 2, 3)5166 def test_1_3(self):5167 testSetSkeleton(self, 1, 3)5168 def test_5_2(self):5169 testSetSkeleton(self, 5, 2)5170 def test_2_2(self):5171 testSetSkeleton(self, 2, 2)5172# End test pads with some holes5173# Test pad with many holes5174if (True):5175 class TestDFS_4x2_1_manyHoles(unittest.TestCase):5176 strategies = list(DFSStrategy)5177 padFile = "./testData/maps/manyHoles/map4x2_1.txt" 5178 def walkFunction(self):5179 return dfs5180 5181 def test_1_0(self):5182 testSetSkeleton(self, 1, 0)5183 def test_0_0(self):5184 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5185 testSetSkeleton(self, 0, 0, doNotTest)5186 5187 def test_2_0(self):5188 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]5189 testSetSkeleton(self, 2, 0, doNotTest)5190 5191 class TestDFS_4x2_2_manyHoles(unittest.TestCase):5192 strategies = list(DFSStrategy)5193 padFile = "./testData/maps/manyHoles/map4x2_2.txt" 5194 def walkFunction(self):5195 return dfs5196 5197 def test_1_0(self):5198 testSetSkeleton(self, 1, 0)5199 def test_0_0(self):5200 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5201 testSetSkeleton(self, 0, 0, doNotTest)5202 5203 def test_2_0(self):5204 testSetSkeleton(self, 2, 0)5205 class TestDFSLook_4x2_1_manyHoles(unittest.TestCase):5206 strategies = list(DFSStrategy)5207 padFile = "./testData/maps/manyHoles/map4x2_1.txt" 5208 def walkFunction(self):5209 return dfsLook5210 5211 def test_1_0(self):5212 testSetSkeleton(self, 1, 0)5213 def test_0_0(self):5214 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5215 testSetSkeleton(self, 0, 0, doNotTest)5216 5217 def test_2_0(self):5218 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]5219 testSetSkeleton(self, 2, 0, doNotTest)5220 5221 class TestDFSLook_4x2_2_manyHoles(unittest.TestCase):5222 strategies = list(DFSStrategy)5223 padFile = "./testData/maps/manyHoles/map4x2_2.txt" 5224 def walkFunction(self):5225 return dfsLook5226 5227 def test_1_0(self):5228 testSetSkeleton(self, 1, 0)5229 def test_0_0(self):5230 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5231 testSetSkeleton(self, 0, 0, doNotTest)5232 5233 def test_2_0(self):5234 testSetSkeleton(self, 2, 0)5235 class TestShortestBacktrack_4x2_1_manyHoles(unittest.TestCase):5236 strategies = list(BacktrackStrategy)5237 padFile = "./testData/maps/manyHoles/map4x2_1.txt" 5238 def walkFunction(self):5239 return shortestBacktrack5240 5241 def test_1_0(self):5242 testSetSkeleton(self, 1, 0)5243 def test_0_0(self):5244 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5245 testSetSkeleton(self, 0, 0, doNotTest)5246 5247 def test_2_0(self):5248 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]5249 testSetSkeleton(self, 2, 0, doNotTest)5250 5251 class TestShortestBacktrack_4x2_2_manyHoles(unittest.TestCase):5252 strategies = list(BacktrackStrategy)5253 padFile = "./testData/maps/manyHoles/map4x2_2.txt" 5254 def walkFunction(self):5255 return shortestBacktrack5256 5257 def test_1_0(self):5258 testSetSkeleton(self, 1, 0)5259 def test_0_0(self):5260 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5261 testSetSkeleton(self, 0, 0, doNotTest)5262 5263 def test_2_0(self):5264 testSetSkeleton(self, 2, 0)5265 class TestShortestBacktrackLook_4x2_1_manyHoles(unittest.TestCase):5266 strategies = list(BacktrackStrategy)5267 padFile = "./testData/maps/manyHoles/map4x2_1.txt" 5268 def walkFunction(self):5269 return shortestBacktrackLook5270 5271 def test_1_0(self):5272 testSetSkeleton(self, 1, 0)5273 def test_0_0(self):5274 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5275 testSetSkeleton(self, 0, 0, doNotTest)5276 5277 def test_2_0(self):5278 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]5279 testSetSkeleton(self, 2, 0, doNotTest)5280 5281 class TestShortestBacktrackLook_4x2_2_manyHoles(unittest.TestCase):5282 strategies = list(BacktrackStrategy)5283 padFile = "./testData/maps/manyHoles/map4x2_2.txt" 5284 def walkFunction(self):5285 return shortestBacktrackLook5286 5287 def test_1_0(self):5288 testSetSkeleton(self, 1, 0)5289 def test_0_0(self):5290 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5291 testSetSkeleton(self, 0, 0, doNotTest)5292 5293 def test_2_0(self):5294 testSetSkeleton(self, 2, 0)5295 class TestDFS_5x6_1_manyHoles(unittest.TestCase):5296 strategies = list(DFSStrategy)5297 padFile = "./testData/maps/manyHoles/map5x6_1.txt" 5298 def walkFunction(self):5299 return dfs5300 5301 def test_1_2(self):5302 testSetSkeleton(self, 1, 2)5303 def test_2_1(self):5304 testSetSkeleton(self, 2, 1)5305 5306 def test_0_1(self):5307 testSetSkeleton(self, 0, 1)5308 def test_0_0(self):5309 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5310 testSetSkeleton(self, 0, 0, doNotTest)5311 5312 def test_0_2(self):5313 testSetSkeleton(self, 0, 2)5314 def test_2_3(self):5315 testSetSkeleton(self, 2, 3)5316 def test_1_3(self):5317 testSetSkeleton(self, 1, 3)5318 def test_2_5(self):5319 testSetSkeleton(self, 2, 5)5320 class TestDFS_5x6_2_manyHoles(unittest.TestCase):5321 strategies = list(DFSStrategy)5322 padFile = "./testData/maps/manyHoles/map5x6_2.txt" 5323 def walkFunction(self):5324 return dfs5325 5326 def test_1_2(self):5327 testSetSkeleton(self, 1, 2)5328 def test_2_1(self):5329 testSetSkeleton(self, 2, 1)5330 5331 def test_0_1(self):5332 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5333 testSetSkeleton(self, 0, 1, doNotTest)5334 5335 def test_1_0(self):5336 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5337 testSetSkeleton(self, 1, 0, doNotTest)5338 def test_2_3(self):5339 testSetSkeleton(self, 2, 3)5340 def test_1_3(self):5341 testSetSkeleton(self, 1, 3)5342 5343 def test_2_5(self):5344 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]5345 testSetSkeleton(self, 2, 5, doNotTest)5346 class TestDFS_5x6_3_manyHoles(unittest.TestCase):5347 strategies = list(DFSStrategy)5348 padFile = "./testData/maps/manyHoles/map5x6_3.txt" 5349 def walkFunction(self):5350 return dfs5351 5352 def test_1_2(self):5353 testSetSkeleton(self, 1, 2)5354 def test_2_1(self):5355 testSetSkeleton(self, 2, 1)5356 5357 def test_0_1(self):5358 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5359 testSetSkeleton(self, 0, 1, doNotTest)5360 5361 def test_2_0(self):5362 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5363 testSetSkeleton(self, 2, 0, doNotTest)5364 def test_3_3(self):5365 testSetSkeleton(self, 3, 3)5366 def test_3_4(self):5367 testSetSkeleton(self, 3, 4)5368 class TestDFS_5x6_4_manyHoles(unittest.TestCase):5369 strategies = list(DFSStrategy)5370 padFile = "./testData/maps/manyHoles/map5x6_4.txt" 5371 def walkFunction(self):5372 return dfs5373 5374 def test_1_2(self):5375 testSetSkeleton(self, 1, 2)5376 def test_2_1(self):5377 testSetSkeleton(self, 2, 1)5378 5379 def test_0_1(self):5380 testSetSkeleton(self, 0, 1)5381 def test_1_0(self):5382 testSetSkeleton(self, 1, 0)5383 def test_0_0(self):5384 testSetSkeleton(self, 0, 0)5385 def test_2_2(self):5386 testSetSkeleton(self, 2, 2)5387 5388 def test_3_2(self):5389 testSetSkeleton(self, 3, 2)5390 def test_1_3(self):5391 testSetSkeleton(self, 1, 3)5392 class TestDFSLook_5x6_1_manyHoles(unittest.TestCase):5393 strategies = list(DFSStrategy)5394 padFile = "./testData/maps/manyHoles/map5x6_1.txt" 5395 def walkFunction(self):5396 return dfsLook5397 5398 def test_1_2(self):5399 testSetSkeleton(self, 1, 2)5400 def test_2_1(self):5401 testSetSkeleton(self, 2, 1)5402 5403 def test_0_1(self):5404 testSetSkeleton(self, 0, 1)5405 def test_0_0(self):5406 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5407 testSetSkeleton(self, 0, 0, doNotTest)5408 5409 def test_0_2(self):5410 testSetSkeleton(self, 0, 2)5411 def test_2_3(self):5412 testSetSkeleton(self, 2, 3)5413 def test_1_3(self):5414 testSetSkeleton(self, 1, 3)5415 def test_2_5(self):5416 testSetSkeleton(self, 2, 5)5417 class TestDFSLook_5x6_2_manyHoles(unittest.TestCase):5418 strategies = list(DFSStrategy)5419 padFile = "./testData/maps/manyHoles/map5x6_2.txt" 5420 def walkFunction(self):5421 return dfsLook5422 5423 def test_1_2(self):5424 testSetSkeleton(self, 1, 2)5425 def test_2_1(self):5426 testSetSkeleton(self, 2, 1)5427 5428 def test_0_1(self):5429 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5430 testSetSkeleton(self, 0, 1, doNotTest)5431 5432 def test_1_0(self):5433 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5434 testSetSkeleton(self, 1, 0, doNotTest)5435 def test_2_3(self):5436 testSetSkeleton(self, 2, 3)5437 def test_1_3(self):5438 testSetSkeleton(self, 1, 3)5439 5440 def test_2_5(self):5441 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]5442 testSetSkeleton(self, 2, 5, doNotTest)5443 class TestDFSLook_5x6_3_manyHoles(unittest.TestCase):5444 strategies = list(DFSStrategy)5445 padFile = "./testData/maps/manyHoles/map5x6_3.txt" 5446 def walkFunction(self):5447 return dfsLook5448 5449 def test_1_2(self):5450 testSetSkeleton(self, 1, 2)5451 def test_2_1(self):5452 testSetSkeleton(self, 2, 1)5453 5454 def test_0_1(self):5455 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5456 testSetSkeleton(self, 0, 1, doNotTest)5457 5458 def test_2_0(self):5459 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5460 testSetSkeleton(self, 2, 0, doNotTest)5461 def test_3_3(self):5462 testSetSkeleton(self, 3, 3)5463 def test_3_4(self):5464 testSetSkeleton(self, 3, 4)5465 class TestDFSLook_5x6_4_manyHoles(unittest.TestCase):5466 strategies = list(DFSStrategy)5467 padFile = "./testData/maps/manyHoles/map5x6_4.txt" 5468 def walkFunction(self):5469 return dfsLook5470 5471 def test_1_2(self):5472 testSetSkeleton(self, 1, 2)5473 def test_2_1(self):5474 testSetSkeleton(self, 2, 1)5475 5476 def test_0_1(self):5477 testSetSkeleton(self, 0, 1)5478 def test_1_0(self):5479 testSetSkeleton(self, 1, 0)5480 def test_0_0(self):5481 testSetSkeleton(self, 0, 0)5482 def test_2_2(self):5483 testSetSkeleton(self, 2, 2)5484 5485 def test_3_2(self):5486 testSetSkeleton(self, 3, 2)5487 def test_1_3(self):5488 testSetSkeleton(self, 1, 3)5489 class TestShortestBacktrack_5x6_1_manyHoles(unittest.TestCase):5490 strategies = list(BacktrackStrategy)5491 padFile = "./testData/maps/manyHoles/map5x6_1.txt" 5492 def walkFunction(self):5493 return shortestBacktrack5494 5495 def test_1_2(self):5496 testSetSkeleton(self, 1, 2)5497 def test_2_1(self):5498 testSetSkeleton(self, 2, 1)5499 5500 def test_0_1(self):5501 testSetSkeleton(self, 0, 1)5502 def test_0_0(self):5503 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5504 testSetSkeleton(self, 0, 0, doNotTest)5505 5506 def test_0_2(self):5507 testSetSkeleton(self, 0, 2)5508 def test_2_3(self):5509 testSetSkeleton(self, 2, 3)5510 def test_1_3(self):5511 testSetSkeleton(self, 1, 3)5512 def test_2_5(self):5513 testSetSkeleton(self, 2, 5)5514 class TestShortestBacktrack_5x6_2_manyHoles(unittest.TestCase):5515 strategies = list(BacktrackStrategy)5516 padFile = "./testData/maps/manyHoles/map5x6_2.txt" 5517 def walkFunction(self):5518 return shortestBacktrack5519 5520 def test_1_2(self):5521 testSetSkeleton(self, 1, 2)5522 def test_2_1(self):5523 testSetSkeleton(self, 2, 1)5524 5525 def test_0_1(self):5526 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5527 testSetSkeleton(self, 0, 1, doNotTest)5528 5529 def test_1_0(self):5530 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5531 testSetSkeleton(self, 1, 0, doNotTest)5532 def test_2_3(self):5533 testSetSkeleton(self, 2, 3)5534 def test_1_3(self):5535 testSetSkeleton(self, 1, 3)5536 5537 def test_2_5(self):5538 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]5539 testSetSkeleton(self, 2, 5, doNotTest)5540 class TestShortestBacktrack_5x6_3_manyHoles(unittest.TestCase):5541 strategies = list(BacktrackStrategy)5542 padFile = "./testData/maps/manyHoles/map5x6_3.txt" 5543 def walkFunction(self):5544 return shortestBacktrack5545 5546 def test_1_2(self):5547 testSetSkeleton(self, 1, 2)5548 def test_2_1(self):5549 testSetSkeleton(self, 2, 1)5550 5551 def test_0_1(self):5552 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5553 testSetSkeleton(self, 0, 1, doNotTest)5554 5555 def test_2_0(self):5556 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5557 testSetSkeleton(self, 2, 0, doNotTest)5558 def test_3_3(self):5559 testSetSkeleton(self, 3, 3)5560 def test_3_4(self):5561 testSetSkeleton(self, 3, 4)5562 class TestShortestBacktrack_5x6_4_manyHoles(unittest.TestCase):5563 strategies = list(BacktrackStrategy)5564 padFile = "./testData/maps/manyHoles/map5x6_4.txt" 5565 def walkFunction(self):5566 return shortestBacktrack5567 5568 def test_1_2(self):5569 testSetSkeleton(self, 1, 2)5570 def test_2_1(self):5571 testSetSkeleton(self, 2, 1)5572 5573 def test_0_1(self):5574 testSetSkeleton(self, 0, 1)5575 def test_1_0(self):5576 testSetSkeleton(self, 1, 0)5577 def test_0_0(self):5578 testSetSkeleton(self, 0, 0)5579 def test_2_2(self):5580 testSetSkeleton(self, 2, 2)5581 5582 def test_3_2(self):5583 testSetSkeleton(self, 3, 2)5584 def test_1_3(self):5585 testSetSkeleton(self, 1, 3)5586 class TestShortestBacktrackLook_5x6_1_manyHoles(unittest.TestCase):5587 strategies = list(BacktrackStrategy)5588 padFile = "./testData/maps/manyHoles/map5x6_1.txt" 5589 def walkFunction(self):5590 return shortestBacktrackLook5591 5592 def test_1_2(self):5593 testSetSkeleton(self, 1, 2)5594 def test_2_1(self):5595 testSetSkeleton(self, 2, 1)5596 5597 def test_0_1(self):5598 testSetSkeleton(self, 0, 1)5599 def test_0_0(self):5600 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5601 testSetSkeleton(self, 0, 0, doNotTest)5602 5603 def test_0_2(self):5604 testSetSkeleton(self, 0, 2)5605 def test_2_3(self):5606 testSetSkeleton(self, 2, 3)5607 def test_1_3(self):5608 testSetSkeleton(self, 1, 3)5609 def test_2_5(self):5610 testSetSkeleton(self, 2, 5)5611 class TestShortestBacktrackLook_5x6_2_manyHoles(unittest.TestCase):5612 strategies = list(BacktrackStrategy)5613 padFile = "./testData/maps/manyHoles/map5x6_2.txt" 5614 def walkFunction(self):5615 return shortestBacktrackLook5616 5617 def test_1_2(self):5618 testSetSkeleton(self, 1, 2)5619 def test_2_1(self):5620 testSetSkeleton(self, 2, 1)5621 5622 def test_0_1(self):5623 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5624 testSetSkeleton(self, 0, 1, doNotTest)5625 5626 def test_1_0(self):5627 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5628 testSetSkeleton(self, 1, 0, doNotTest)5629 def test_2_3(self):5630 testSetSkeleton(self, 2, 3)5631 def test_1_3(self):5632 testSetSkeleton(self, 1, 3)5633 5634 def test_2_5(self):5635 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]5636 testSetSkeleton(self, 2, 5, doNotTest)5637 class TestShortestBacktrackLook_5x6_3_manyHoles(unittest.TestCase):5638 strategies = list(BacktrackStrategy)5639 padFile = "./testData/maps/manyHoles/map5x6_3.txt" 5640 def walkFunction(self):5641 return shortestBacktrackLook5642 5643 def test_1_2(self):5644 testSetSkeleton(self, 1, 2)5645 def test_2_1(self):5646 testSetSkeleton(self, 2, 1)5647 5648 def test_0_1(self):5649 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5650 testSetSkeleton(self, 0, 1, doNotTest)5651 5652 def test_2_0(self):5653 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]5654 testSetSkeleton(self, 2, 0, doNotTest)5655 def test_3_3(self):5656 testSetSkeleton(self, 3, 3)5657 def test_3_4(self):5658 testSetSkeleton(self, 3, 4)5659 class TestShortestBacktrackLook_5x6_4_manyHoles(unittest.TestCase):5660 strategies = list(BacktrackStrategy)5661 padFile = "./testData/maps/manyHoles/map5x6_4.txt" 5662 def walkFunction(self):5663 return shortestBacktrackLook5664 5665 def test_1_2(self):5666 testSetSkeleton(self, 1, 2)5667 def test_2_1(self):5668 testSetSkeleton(self, 2, 1)5669 5670 def test_0_1(self):5671 testSetSkeleton(self, 0, 1)5672 def test_1_0(self):5673 testSetSkeleton(self, 1, 0)5674 def test_0_0(self):5675 testSetSkeleton(self, 0, 0)5676 def test_2_2(self):5677 testSetSkeleton(self, 2, 2)5678 5679 def test_3_2(self):5680 testSetSkeleton(self, 3, 2)5681 def test_1_3(self):5682 testSetSkeleton(self, 1, 3)5683 class TestDFS_7x9_1_manyHoles(unittest.TestCase):5684 strategies = list(DFSStrategy)5685 padFile = "./testData/maps/manyHoles/map7x9_1.txt" 5686 def walkFunction(self):5687 return dfs5688 5689 def test_1_2(self):5690 testSetSkeleton(self, 1, 2)5691 5692 def test_2_1(self):5693 testSetSkeleton(self, 2, 1)5694 def test_2_0(self):5695 testSetSkeleton(self, 2, 0)5696 5697 def test_0_7(self):5698 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5699 testSetSkeleton(self, 0, 7, doNotTest)5700 def test_2_4(self):5701 testSetSkeleton(self, 2, 4)5702 def test_1_3(self):5703 testSetSkeleton(self, 1, 3)5704 def test_5_6(self):5705 testSetSkeleton(self, 5, 6)5706 class TestDFS_7x9_2_manyHoles(unittest.TestCase):5707 strategies = list(DFSStrategy)5708 padFile = "./testData/maps/manyHoles/map7x9_2.txt" 5709 def walkFunction(self):5710 return dfs5711 def test_2_3(self):5712 testSetSkeleton(self, 2, 3)5713 def test_1_3(self):5714 testSetSkeleton(self, 1, 3)5715 def test_5_2(self):5716 testSetSkeleton(self, 5, 2)5717 5718 def test_1_4(self):5719 testSetSkeleton(self, 1, 4)5720 class TestDFS_7x9_3_manyHoles(unittest.TestCase):5721 strategies = list(DFSStrategy)5722 padFile = "./testData/maps/manyHoles/map7x9_3.txt" 5723 def walkFunction(self):5724 return dfs5725 5726 def test_1_2(self):5727 testSetSkeleton(self, 1, 2)5728 5729 def test_2_1(self):5730 testSetSkeleton(self, 2, 1)5731 5732 def test_2_0(self):5733 testSetSkeleton(self, 2, 0)5734 5735 def test_0_2(self):5736 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5737 testSetSkeleton(self, 0, 2, doNotTest)5738 def test_2_3(self):5739 testSetSkeleton(self, 2, 3)5740 def test_5_2(self):5741 testSetSkeleton(self, 5, 2)5742 5743 def test_5_4(self):5744 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]5745 testSetSkeleton(self, 5, 4, doNotTest)5746 class TestDFS_7x9_4_manyHoles(unittest.TestCase):5747 strategies = list(DFSStrategy)5748 padFile = "./testData/maps/manyHoles/map7x9_4.txt" 5749 def walkFunction(self):5750 return dfs5751 5752 def test_1_2(self):5753 testSetSkeleton(self, 1, 2)5754 5755 def test_1_0(self):5756 testSetSkeleton(self, 1, 0)5757 def test_0_0(self):5758 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5759 testSetSkeleton(self, 0, 0, doNotTest)5760 def test_2_5(self):5761 testSetSkeleton(self, 2, 5)5762 def test_1_3(self):5763 testSetSkeleton(self, 1, 3)5764 def test_5_6(self):5765 testSetSkeleton(self, 5, 6)5766 class TestDFSLook_7x9_1_manyHoles(unittest.TestCase):5767 strategies = list(DFSStrategy)5768 padFile = "./testData/maps/manyHoles/map7x9_1.txt" 5769 def walkFunction(self):5770 return dfsLook5771 5772 def test_1_2(self):5773 testSetSkeleton(self, 1, 2)5774 5775 def test_2_1(self):5776 testSetSkeleton(self, 2, 1)5777 def test_2_0(self):5778 testSetSkeleton(self, 2, 0)5779 5780 def test_0_7(self):5781 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5782 testSetSkeleton(self, 0, 7, doNotTest)5783 def test_2_4(self):5784 testSetSkeleton(self, 2, 4)5785 def test_1_3(self):5786 testSetSkeleton(self, 1, 3)5787 def test_5_6(self):5788 testSetSkeleton(self, 5, 6)5789 class TestDFSLook_7x9_2_manyHoles(unittest.TestCase):5790 strategies = list(DFSStrategy)5791 padFile = "./testData/maps/manyHoles/map7x9_2.txt" 5792 def walkFunction(self):5793 return dfsLook5794 def test_2_3(self):5795 testSetSkeleton(self, 2, 3)5796 def test_1_3(self):5797 testSetSkeleton(self, 1, 3)5798 def test_5_2(self):5799 testSetSkeleton(self, 5, 2)5800 5801 def test_1_4(self):5802 testSetSkeleton(self, 1, 4)5803 class TestDFSLook_7x9_3_manyHoles(unittest.TestCase):5804 strategies = list(DFSStrategy)5805 padFile = "./testData/maps/manyHoles/map7x9_3.txt" 5806 def walkFunction(self):5807 return dfsLook5808 5809 def test_1_2(self):5810 testSetSkeleton(self, 1, 2)5811 5812 def test_2_1(self):5813 testSetSkeleton(self, 2, 1)5814 5815 def test_2_0(self):5816 testSetSkeleton(self, 2, 0)5817 5818 def test_0_2(self):5819 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5820 testSetSkeleton(self, 0, 2, doNotTest)5821 def test_2_3(self):5822 testSetSkeleton(self, 2, 3)5823 def test_5_2(self):5824 testSetSkeleton(self, 5, 2)5825 5826 def test_5_4(self):5827 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]5828 testSetSkeleton(self, 5, 4, doNotTest)5829 class TestDFSLook_7x9_4_manyHoles(unittest.TestCase):5830 strategies = list(DFSStrategy)5831 padFile = "./testData/maps/manyHoles/map7x9_4.txt" 5832 def walkFunction(self):5833 return dfsLook5834 5835 def test_1_2(self):5836 testSetSkeleton(self, 1, 2)5837 5838 def test_1_0(self):5839 testSetSkeleton(self, 1, 0)5840 def test_0_0(self):5841 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5842 testSetSkeleton(self, 0, 0, doNotTest)5843 def test_2_5(self):5844 testSetSkeleton(self, 2, 5)5845 def test_1_3(self):5846 testSetSkeleton(self, 1, 3)5847 def test_5_6(self):5848 testSetSkeleton(self, 5, 6)5849 class TestShortestBacktrack_7x9_1_manyHoles(unittest.TestCase):5850 strategies = list(BacktrackStrategy)5851 padFile = "./testData/maps/manyHoles/map7x9_1.txt" 5852 def walkFunction(self):5853 return shortestBacktrack5854 5855 def test_1_2(self):5856 testSetSkeleton(self, 1, 2)5857 5858 def test_2_1(self):5859 testSetSkeleton(self, 2, 1)5860 def test_2_0(self):5861 testSetSkeleton(self, 2, 0)5862 5863 def test_0_7(self):5864 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5865 testSetSkeleton(self, 0, 7, doNotTest)5866 def test_2_4(self):5867 testSetSkeleton(self, 2, 4)5868 def test_1_3(self):5869 testSetSkeleton(self, 1, 3)5870 def test_5_6(self):5871 testSetSkeleton(self, 5, 6)5872 class TestShortestBacktrack_7x9_2_manyHoles(unittest.TestCase):5873 strategies = list(BacktrackStrategy)5874 padFile = "./testData/maps/manyHoles/map7x9_2.txt" 5875 def walkFunction(self):5876 return shortestBacktrack5877 def test_2_3(self):5878 testSetSkeleton(self, 2, 3)5879 def test_1_3(self):5880 testSetSkeleton(self, 1, 3)5881 def test_5_2(self):5882 testSetSkeleton(self, 5, 2)5883 5884 def test_1_4(self):5885 testSetSkeleton(self, 1, 4)5886 class TestShortestBacktrack_7x9_3_manyHoles(unittest.TestCase):5887 strategies = list(BacktrackStrategy)5888 padFile = "./testData/maps/manyHoles/map7x9_3.txt" 5889 def walkFunction(self):5890 return shortestBacktrack5891 5892 def test_1_2(self):5893 testSetSkeleton(self, 1, 2)5894 5895 def test_2_1(self):5896 testSetSkeleton(self, 2, 1)5897 5898 def test_2_0(self):5899 testSetSkeleton(self, 2, 0)5900 5901 def test_0_2(self):5902 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5903 testSetSkeleton(self, 0, 2, doNotTest)5904 def test_2_3(self):5905 testSetSkeleton(self, 2, 3)5906 def test_5_2(self):5907 testSetSkeleton(self, 5, 2)5908 5909 def test_5_4(self):5910 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]5911 testSetSkeleton(self, 5, 4, doNotTest)5912 class TestShortestBacktrack_7x9_4_manyHoles(unittest.TestCase):5913 strategies = list(BacktrackStrategy)5914 padFile = "./testData/maps/manyHoles/map7x9_4.txt" 5915 def walkFunction(self):5916 return shortestBacktrack5917 5918 def test_1_2(self):5919 testSetSkeleton(self, 1, 2)5920 5921 def test_1_0(self):5922 testSetSkeleton(self, 1, 0)5923 def test_0_0(self):5924 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5925 testSetSkeleton(self, 0, 0, doNotTest)5926 def test_2_5(self):5927 testSetSkeleton(self, 2, 5)5928 def test_1_3(self):5929 testSetSkeleton(self, 1, 3)5930 def test_5_6(self):5931 testSetSkeleton(self, 5, 6)5932 class TestShortestBacktrackLook_7x9_1_manyHoles(unittest.TestCase):5933 strategies = list(BacktrackStrategy)5934 padFile = "./testData/maps/manyHoles/map7x9_1.txt" 5935 def walkFunction(self):5936 return shortestBacktrackLook5937 5938 def test_1_2(self):5939 testSetSkeleton(self, 1, 2)5940 5941 def test_2_1(self):5942 testSetSkeleton(self, 2, 1)5943 def test_2_0(self):5944 testSetSkeleton(self, 2, 0)5945 5946 def test_0_7(self):5947 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5948 testSetSkeleton(self, 0, 7, doNotTest)5949 def test_2_4(self):5950 testSetSkeleton(self, 2, 4)5951 def test_1_3(self):5952 testSetSkeleton(self, 1, 3)5953 def test_5_6(self):5954 testSetSkeleton(self, 5, 6)5955 class TestShortestBacktrackLook_7x9_2_manyHoles(unittest.TestCase):5956 strategies = list(BacktrackStrategy)5957 padFile = "./testData/maps/manyHoles/map7x9_2.txt" 5958 def walkFunction(self):5959 return shortestBacktrackLook5960 def test_2_3(self):5961 testSetSkeleton(self, 2, 3)5962 def test_1_3(self):5963 testSetSkeleton(self, 1, 3)5964 def test_5_2(self):5965 testSetSkeleton(self, 5, 2)5966 5967 def test_1_4(self):5968 testSetSkeleton(self, 1, 4)5969 class TestShortestBacktrackLook_7x9_3_manyHoles(unittest.TestCase):5970 strategies = list(BacktrackStrategy)5971 padFile = "./testData/maps/manyHoles/map7x9_3.txt" 5972 def walkFunction(self):5973 return shortestBacktrackLook5974 5975 def test_1_2(self):5976 testSetSkeleton(self, 1, 2)5977 5978 def test_2_1(self):5979 testSetSkeleton(self, 2, 1)5980 5981 def test_2_0(self):5982 testSetSkeleton(self, 2, 0)5983 5984 def test_0_2(self):5985 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]5986 testSetSkeleton(self, 0, 2, doNotTest)5987 def test_2_3(self):5988 testSetSkeleton(self, 2, 3)5989 def test_5_2(self):5990 testSetSkeleton(self, 5, 2)5991 5992 def test_5_4(self):5993 doNotTest = [(True, Ori.N, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.N, s, RofibotType.SINGLE) for s in self.strategies]5994 testSetSkeleton(self, 5, 4, doNotTest)5995 class TestShortestBacktrackLook_7x9_4_manyHoles(unittest.TestCase):5996 strategies = list(BacktrackStrategy)5997 padFile = "./testData/maps/manyHoles/map7x9_4.txt" 5998 def walkFunction(self):5999 return shortestBacktrackLook6000 6001 def test_1_2(self):6002 testSetSkeleton(self, 1, 2)6003 6004 def test_1_0(self):6005 testSetSkeleton(self, 1, 0)6006 def test_0_0(self):6007 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6008 testSetSkeleton(self, 0, 0, doNotTest)6009 def test_2_5(self):6010 testSetSkeleton(self, 2, 5)6011 def test_1_3(self):6012 testSetSkeleton(self, 1, 3)6013 def test_5_6(self):6014 testSetSkeleton(self, 5, 6)6015 class TestDFS_9x4_1_manyHoles(unittest.TestCase):6016 strategies = list(DFSStrategy)6017 padFile = "./testData/maps/manyHoles/map9x4_1.txt" 6018 def walkFunction(self):6019 return dfs6020 6021 def test_0_1(self):6022 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6023 testSetSkeleton(self, 0, 1, doNotTest)6024 def test_2_0(self):6025 testSetSkeleton(self, 2, 0)6026 def test_2_3(self):6027 testSetSkeleton(self, 2, 3)6028 def test_1_3(self):6029 testSetSkeleton(self, 1, 3)6030 def test_5_2(self):6031 testSetSkeleton(self, 5, 2)6032 def test_2_2(self):6033 testSetSkeleton(self, 2, 2)6034 class TestDFS_9x4_2_manyHoles(unittest.TestCase):6035 strategies = list(DFSStrategy)6036 padFile = "./testData/maps/manyHoles/map9x4_2.txt" 6037 def walkFunction(self):6038 return dfs6039 6040 def test_1_0(self):6041 testSetSkeleton(self, 1, 0)6042 def test_0_0(self):6043 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6044 testSetSkeleton(self, 0, 0, doNotTest)6045 6046 def test_2_0(self):6047 testSetSkeleton(self, 2, 0)6048 def test_3_0(self):6049 testSetSkeleton(self, 3, 0)6050 def test_3_3(self):6051 testSetSkeleton(self, 3, 3)6052 def test_5_2(self):6053 testSetSkeleton(self, 5, 2)6054 class TestDFS_9x4_3_manyHoles(unittest.TestCase):6055 strategies = list(DFSStrategy)6056 padFile = "./testData/maps/manyHoles/map9x4_3.txt" 6057 def walkFunction(self):6058 return dfs6059 6060 def test_1_2(self):6061 testSetSkeleton(self, 1, 2)6062 6063 def test_0_1(self):6064 testSetSkeleton(self, 0, 1)6065 6066 def test_1_0(self):6067 testSetSkeleton(self, 1, 0)6068 def test_0_0(self):6069 testSetSkeleton(self, 0, 0)6070 def test_2_0(self):6071 testSetSkeleton(self, 2, 0)6072 6073 def test_2_3(self):6074 testSetSkeleton(self, 2, 3)6075 def test_1_3(self):6076 testSetSkeleton(self, 1, 3)6077 def test_5_3(self):6078 testSetSkeleton(self, 5, 3)6079 def test_2_2(self):6080 testSetSkeleton(self, 2, 2)6081 class TestDFS_9x4_4_manyHoles(unittest.TestCase):6082 strategies = list(DFSStrategy)6083 padFile = "./testData/maps/manyHoles/map9x4_4.txt" 6084 def walkFunction(self):6085 return dfs6086 def test_2_3(self):6087 testSetSkeleton(self, 2, 3)6088 def test_1_3(self):6089 testSetSkeleton(self, 1, 3)6090 def test_6_2(self):6091 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]6092 testSetSkeleton(self, 6, 2, doNotTest)6093 def test_2_1(self):6094 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6095 testSetSkeleton(self, 2, 1, doNotTest)6096 6097 def test_3_1(self):6098 testSetSkeleton(self, 3, 1)6099 class TestDFS_9x4_5_manyHoles(unittest.TestCase):6100 strategies = list(DFSStrategy)6101 padFile = "./testData/maps/manyHoles/map9x4_5.txt" 6102 def walkFunction(self):6103 return dfs6104 6105 def test_0_1(self):6106 testSetSkeleton(self, 0, 1)6107 def test_0_0(self):6108 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]6109 testSetSkeleton(self, 0, 0, doNotTest)6110 def test_2_0(self):6111 testSetSkeleton(self, 2, 0)6112 def test_2_3(self):6113 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]6114 testSetSkeleton(self, 2, 3, doNotTest)6115 def test_5_2(self):6116 testSetSkeleton(self, 5, 2)6117 def test_2_2(self):6118 testSetSkeleton(self, 2, 2)6119 class TestDFSLook_9x4_1_manyHoles(unittest.TestCase):6120 strategies = list(DFSStrategy)6121 padFile = "./testData/maps/manyHoles/map9x4_1.txt" 6122 def walkFunction(self):6123 return dfsLook6124 6125 def test_0_1(self):6126 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6127 testSetSkeleton(self, 0, 1, doNotTest)6128 def test_2_0(self):6129 testSetSkeleton(self, 2, 0)6130 def test_2_3(self):6131 testSetSkeleton(self, 2, 3)6132 def test_1_3(self):6133 testSetSkeleton(self, 1, 3)6134 def test_5_2(self):6135 testSetSkeleton(self, 5, 2)6136 def test_2_2(self):6137 testSetSkeleton(self, 2, 2)6138 class TestDFSLook_9x4_2_manyHoles(unittest.TestCase):6139 strategies = list(DFSStrategy)6140 padFile = "./testData/maps/manyHoles/map9x4_2.txt" 6141 def walkFunction(self):6142 return dfsLook6143 6144 def test_1_0(self):6145 testSetSkeleton(self, 1, 0)6146 def test_0_0(self):6147 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6148 testSetSkeleton(self, 0, 0, doNotTest)6149 6150 def test_2_0(self):6151 testSetSkeleton(self, 2, 0)6152 def test_3_0(self):6153 testSetSkeleton(self, 3, 0)6154 def test_3_3(self):6155 testSetSkeleton(self, 3, 3)6156 def test_5_2(self):6157 testSetSkeleton(self, 5, 2)6158 class TestDFSLook_9x4_3_manyHoles(unittest.TestCase):6159 strategies = list(DFSStrategy)6160 padFile = "./testData/maps/manyHoles/map9x4_3.txt" 6161 def walkFunction(self):6162 return dfsLook6163 6164 def test_1_2(self):6165 testSetSkeleton(self, 1, 2)6166 6167 def test_0_1(self):6168 testSetSkeleton(self, 0, 1)6169 6170 def test_1_0(self):6171 testSetSkeleton(self, 1, 0)6172 def test_0_0(self):6173 testSetSkeleton(self, 0, 0)6174 def test_2_0(self):6175 testSetSkeleton(self, 2, 0)6176 6177 def test_2_3(self):6178 testSetSkeleton(self, 2, 3)6179 def test_1_3(self):6180 testSetSkeleton(self, 1, 3)6181 def test_5_3(self):6182 testSetSkeleton(self, 5, 3)6183 def test_2_2(self):6184 testSetSkeleton(self, 2, 2)6185 class TestDFSLook_9x4_4_manyHoles(unittest.TestCase):6186 strategies = list(DFSStrategy)6187 padFile = "./testData/maps/manyHoles/map9x4_4.txt" 6188 def walkFunction(self):6189 return dfsLook6190 def test_2_3(self):6191 testSetSkeleton(self, 2, 3)6192 def test_1_3(self):6193 testSetSkeleton(self, 1, 3)6194 def test_6_2(self):6195 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]6196 testSetSkeleton(self, 6, 2, doNotTest)6197 def test_2_1(self):6198 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6199 testSetSkeleton(self, 2, 1, doNotTest)6200 6201 def test_3_1(self):6202 testSetSkeleton(self, 3, 1)6203 class TestDFSLook_9x4_5_manyHoles(unittest.TestCase):6204 strategies = list(DFSStrategy)6205 padFile = "./testData/maps/manyHoles/map9x4_5.txt" 6206 def walkFunction(self):6207 return dfsLook6208 6209 def test_0_1(self):6210 testSetSkeleton(self, 0, 1)6211 def test_0_0(self):6212 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]6213 testSetSkeleton(self, 0, 0, doNotTest)6214 def test_2_0(self):6215 testSetSkeleton(self, 2, 0)6216 def test_2_3(self):6217 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]6218 testSetSkeleton(self, 2, 3, doNotTest)6219 def test_5_2(self):6220 testSetSkeleton(self, 5, 2)6221 def test_2_2(self):6222 testSetSkeleton(self, 2, 2)6223 class TestShortestBacktrack_9x4_1_manyHoles(unittest.TestCase):6224 strategies = list(BacktrackStrategy)6225 padFile = "./testData/maps/manyHoles/map9x4_1.txt" 6226 def walkFunction(self):6227 return shortestBacktrack6228 6229 def test_0_1(self):6230 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6231 testSetSkeleton(self, 0, 1, doNotTest)6232 def test_2_0(self):6233 testSetSkeleton(self, 2, 0)6234 def test_2_3(self):6235 testSetSkeleton(self, 2, 3)6236 def test_1_3(self):6237 testSetSkeleton(self, 1, 3)6238 def test_5_2(self):6239 testSetSkeleton(self, 5, 2)6240 def test_2_2(self):6241 testSetSkeleton(self, 2, 2)6242 class TestShortestBacktrack_9x4_2_manyHoles(unittest.TestCase):6243 strategies = list(BacktrackStrategy)6244 padFile = "./testData/maps/manyHoles/map9x4_2.txt" 6245 def walkFunction(self):6246 return shortestBacktrack6247 6248 def test_1_0(self):6249 testSetSkeleton(self, 1, 0)6250 def test_0_0(self):6251 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6252 testSetSkeleton(self, 0, 0, doNotTest)6253 6254 def test_2_0(self):6255 testSetSkeleton(self, 2, 0)6256 def test_3_0(self):6257 testSetSkeleton(self, 3, 0)6258 def test_3_3(self):6259 testSetSkeleton(self, 3, 3)6260 def test_5_2(self):6261 testSetSkeleton(self, 5, 2)6262 class TestShortestBacktrack_9x4_3_manyHoles(unittest.TestCase):6263 strategies = list(BacktrackStrategy)6264 padFile = "./testData/maps/manyHoles/map9x4_3.txt" 6265 def walkFunction(self):6266 return shortestBacktrack6267 6268 def test_1_2(self):6269 testSetSkeleton(self, 1, 2)6270 6271 def test_0_1(self):6272 testSetSkeleton(self, 0, 1)6273 6274 def test_1_0(self):6275 testSetSkeleton(self, 1, 0)6276 def test_0_0(self):6277 testSetSkeleton(self, 0, 0)6278 def test_2_0(self):6279 testSetSkeleton(self, 2, 0)6280 6281 def test_2_3(self):6282 testSetSkeleton(self, 2, 3)6283 def test_1_3(self):6284 testSetSkeleton(self, 1, 3)6285 def test_5_3(self):6286 testSetSkeleton(self, 5, 3)6287 def test_2_2(self):6288 testSetSkeleton(self, 2, 2)6289 class TestShortestBacktrack_9x4_4_manyHoles(unittest.TestCase):6290 strategies = list(BacktrackStrategy)6291 padFile = "./testData/maps/manyHoles/map9x4_4.txt" 6292 def walkFunction(self):6293 return shortestBacktrack6294 def test_2_3(self):6295 testSetSkeleton(self, 2, 3)6296 def test_1_3(self):6297 testSetSkeleton(self, 1, 3)6298 def test_6_2(self):6299 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]6300 testSetSkeleton(self, 6, 2, doNotTest)6301 def test_2_1(self):6302 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6303 testSetSkeleton(self, 2, 1, doNotTest)6304 6305 def test_3_1(self):6306 testSetSkeleton(self, 3, 1)6307 class TestShortestBacktrack_9x4_5_manyHoles(unittest.TestCase):6308 strategies = list(BacktrackStrategy)6309 padFile = "./testData/maps/manyHoles/map9x4_5.txt" 6310 def walkFunction(self):6311 return shortestBacktrack6312 6313 def test_0_1(self):6314 testSetSkeleton(self, 0, 1)6315 def test_0_0(self):6316 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]6317 testSetSkeleton(self, 0, 0, doNotTest)6318 def test_2_0(self):6319 testSetSkeleton(self, 2, 0)6320 def test_2_3(self):6321 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]6322 testSetSkeleton(self, 2, 3, doNotTest)6323 def test_5_2(self):6324 testSetSkeleton(self, 5, 2)6325 def test_2_2(self):6326 testSetSkeleton(self, 2, 2)6327 class TestShortestBacktrackLook_9x4_1_manyHoles(unittest.TestCase):6328 strategies = list(BacktrackStrategy)6329 padFile = "./testData/maps/manyHoles/map9x4_1.txt" 6330 def walkFunction(self):6331 return shortestBacktrackLook6332 6333 def test_0_1(self):6334 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6335 testSetSkeleton(self, 0, 1, doNotTest)6336 def test_2_0(self):6337 testSetSkeleton(self, 2, 0)6338 def test_2_3(self):6339 testSetSkeleton(self, 2, 3)6340 def test_1_3(self):6341 testSetSkeleton(self, 1, 3)6342 def test_5_2(self):6343 testSetSkeleton(self, 5, 2)6344 def test_2_2(self):6345 testSetSkeleton(self, 2, 2)6346 class TestShortestBacktrackLook_9x4_2_manyHoles(unittest.TestCase):6347 strategies = list(BacktrackStrategy)6348 padFile = "./testData/maps/manyHoles/map9x4_2.txt" 6349 def walkFunction(self):6350 return shortestBacktrackLook6351 6352 def test_1_0(self):6353 testSetSkeleton(self, 1, 0)6354 def test_0_0(self):6355 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6356 testSetSkeleton(self, 0, 0, doNotTest)6357 6358 def test_2_0(self):6359 testSetSkeleton(self, 2, 0)6360 def test_3_0(self):6361 testSetSkeleton(self, 3, 0)6362 def test_3_3(self):6363 testSetSkeleton(self, 3, 3)6364 def test_5_2(self):6365 testSetSkeleton(self, 5, 2)6366 class TestShortestBacktrackLook_9x4_3_manyHoles(unittest.TestCase):6367 strategies = list(BacktrackStrategy)6368 padFile = "./testData/maps/manyHoles/map9x4_3.txt" 6369 def walkFunction(self):6370 return shortestBacktrackLook6371 6372 def test_1_2(self):6373 testSetSkeleton(self, 1, 2)6374 6375 def test_0_1(self):6376 testSetSkeleton(self, 0, 1)6377 6378 def test_1_0(self):6379 testSetSkeleton(self, 1, 0)6380 def test_0_0(self):6381 testSetSkeleton(self, 0, 0)6382 def test_2_0(self):6383 testSetSkeleton(self, 2, 0)6384 6385 def test_2_3(self):6386 testSetSkeleton(self, 2, 3)6387 def test_1_3(self):6388 testSetSkeleton(self, 1, 3)6389 def test_5_3(self):6390 testSetSkeleton(self, 5, 3)6391 def test_2_2(self):6392 testSetSkeleton(self, 2, 2)6393 class TestShortestBacktrackLook_9x4_4_manyHoles(unittest.TestCase):6394 strategies = list(BacktrackStrategy)6395 padFile = "./testData/maps/manyHoles/map9x4_4.txt" 6396 def walkFunction(self):6397 return shortestBacktrackLook6398 def test_2_3(self):6399 testSetSkeleton(self, 2, 3)6400 def test_1_3(self):6401 testSetSkeleton(self, 1, 3)6402 def test_6_2(self):6403 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]6404 testSetSkeleton(self, 6, 2, doNotTest)6405 def test_2_1(self):6406 doNotTest = [(True, Ori.S, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.S, s, RofibotType.SINGLE) for s in self.strategies]6407 testSetSkeleton(self, 2, 1, doNotTest)6408 6409 def test_3_1(self):6410 testSetSkeleton(self, 3, 1)6411 class TestShortestBacktrackLook_9x4_5_manyHoles(unittest.TestCase):6412 strategies = list(BacktrackStrategy)6413 padFile = "./testData/maps/manyHoles/map9x4_5.txt" 6414 def walkFunction(self):6415 return shortestBacktrackLook6416 6417 def test_0_1(self):6418 testSetSkeleton(self, 0, 1)6419 def test_0_0(self):6420 doNotTest = [(True, Ori.E, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.E, s, RofibotType.SINGLE) for s in self.strategies]6421 testSetSkeleton(self, 0, 0, doNotTest)6422 def test_2_0(self):6423 testSetSkeleton(self, 2, 0)6424 def test_2_3(self):6425 doNotTest = [(True, Ori.W, s, RofibotType.SINGLE) for s in self.strategies] + [(False, Ori.W, s, RofibotType.SINGLE) for s in self.strategies]6426 testSetSkeleton(self, 2, 3, doNotTest)6427 def test_5_2(self):6428 testSetSkeleton(self, 5, 2)6429 def test_2_2(self):6430 testSetSkeleton(self, 2, 2)6431# End test pads with many holes6432if __name__ == '__main__':...

Full Screen

Full Screen

transpose.py

Source:transpose.py Github

copy

Full Screen

...17 [2],18 [3]19 ]20 self.assertEqual(transpose(m1_3), m3_1, "Should be transpose")21 def test_2_3(self):22 m2_3 = [23 [1, 2, 3],24 [4, 5, 6]25 ]26 m3_2 = [27 [1, 4],28 [2, 5],29 [3, 6]30 ]31 self.assertEqual(transpose(m2_3), m3_2, "Should be transpose")32 def test_2_3(self):33 m3_3 = [34 [1, 2, 3],35 [4, 5, 6],36 [7, 8, 9]37 ]38 m3_32 = [39 [1, 4, 7],40 [2, 5, 8],41 [3, 6, 9]42 ]43 self.assertEqual(transpose(m3_3), m3_32, "Should be transpose")44if __name__ == '__main__':...

Full Screen

Full Screen

test_2_3.py

Source:test_2_3.py Github

copy

Full Screen

2import allure3from Pages.home_page import HomePage4@allure.severity(allure.severity_level.NORMAL)5class Test_2_3(BaseTest):6 def test_2_3(self, setUp):7 home_page = HomePage(driver=self.driver)8 home_page.open('')9 self.driver.implicitly_wait(15)10 home_page.click_on_bags()11 self.driver.implicitly_wait(15)12 text = home_page.find_bags_text()...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Lemoncheesecake automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful