Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[495079]: Test / examples / findall.tst Maximize Restore History

Download this file

findall.tst    27 lines (22 with data), 781 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# findall.tst
>>> import sys
>>> import pyke
>>> import os
>>> new_path = os.path.join(os.path.dirname(os.path.dirname(pyke.__file__)),
... 'examples/findall')
>>> sys.path.append(new_path)
>>> import run
>>> run.fc_test()
egon has ('harald', 'claudia') as cousins
ralf has ('harald', 'claudia') as cousins
hilde has () as cousins
diethelm has () as cousins
harald has ('egon', 'ralf') as cousins
claudia has ('egon', 'ralf') as cousins
>>> run.bc_test()
egon has ('harald', 'claudia') as cousins
ralf has ('harald', 'claudia') as cousins
hilde has () as cousins
diethelm has () as cousins
harald has ('egon', 'ralf') as cousins
claudia has ('egon', 'ralf') as cousins