Diff of /Test/examples/towers_of_hanoi.tst [495079] .. [6de8ee]  Maximize  Restore

Switch to unified view

a/Test/examples/towers_of_hanoi.tst b/Test/examples/towers_of_hanoi.tst
...
...
5
    >>> import os
5
    >>> import os
6
    >>> new_path = os.path.join(os.path.dirname(os.path.dirname(pyke.__file__)),
6
    >>> new_path = os.path.join(os.path.dirname(os.path.dirname(pyke.__file__)),
7
    ...                         'examples/towers_of_hanoi')
7
    ...                         'examples/towers_of_hanoi')
8
    >>> sys.path.append(new_path)
8
    >>> sys.path.append(new_path)
9
9
10
    >>> import run
10
    >>> import driver
11
11
12
    >>> run.test(1)
12
    >>> driver.test(1)
13
    got 1: ((0, 2),)
13
    got 1: ((0, 2),)
14
14
15
    >>> run.test(2)
15
    >>> driver.test(2)
16
    got 1: ((0, 1), (0, 2), (1, 2))
16
    got 1: ((0, 1), (0, 2), (1, 2))
17
    got 2: ((0, 2), (0, 1), (2, 0), (1, 2), (0, 2))
17
    got 2: ((0, 2), (0, 1), (2, 0), (1, 2), (0, 2))
18
18
19
    >>> run.test(3)
19
    >>> driver.test(3)
20
    got 1: ((0, 1), (0, 2), (1, 0), (2, 1), (0, 1), (0, 2), (1, 0), (1, 2), (0, 2))
20
    got 1: ((0, 1), (0, 2), (1, 0), (2, 1), (0, 1), (0, 2), (1, 0), (1, 2), (0, 2))
21
    got 2: ((0, 1), (0, 2), (1, 0), (2, 1), (0, 1), (0, 2), (1, 2), (1, 0), (2, 1), (0, 2), (1, 2))
21
    got 2: ((0, 1), (0, 2), (1, 0), (2, 1), (0, 1), (0, 2), (1, 2), (1, 0), (2, 1), (0, 2), (1, 2))
22
    got 3: ((0, 1), (0, 2), (1, 2), (0, 1), (2, 0), (2, 1), (0, 2), (1, 0), (2, 0), (1, 2), (0, 1), (0, 2), (1, 2))
22
    got 3: ((0, 1), (0, 2), (1, 2), (0, 1), (2, 0), (2, 1), (0, 2), (1, 0), (2, 0), (1, 2), (0, 1), (0, 2), (1, 2))
23
    got 4: ((0, 1), (0, 2), (1, 2), (0, 1), (2, 0), (2, 1), (0, 2), (1, 0), (2, 0), (1, 2), (0, 2), (0, 1), (2, 0), (1, 2), (0, 2))
23
    got 4: ((0, 1), (0, 2), (1, 2), (0, 1), (2, 0), (2, 1), (0, 2), (1, 0), (2, 0), (1, 2), (0, 2), (0, 1), (2, 0), (1, 2), (0, 2))
24
    got 5: ((0, 1), (0, 2), (1, 2), (0, 1), (2, 1), (2, 0), (1, 0), (1, 2), (0, 1), (0, 2), (1, 2))
24
    got 5: ((0, 1), (0, 2), (1, 2), (0, 1), (2, 1), (2, 0), (1, 0), (1, 2), (0, 1), (0, 2), (1, 2))

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks