Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

from PathFinder.AStarNode import AStarNode 

from Map.MapReader import MapReader 

from Queue import PriorityQueue 

from Map.Move import Move 

from Map.Map import Map 

from test import files 

import unittest 

 

class NodeTest(unittest.TestCase): 

 

def test_cost(self): 

a1 = AStarNode(None, None, None, 2, 3) 

self.assertEquals(a1.cost(), 5)