You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
565 B
27 lines
565 B
#!/usr/bin/python
|
|
import os, sys
|
|
|
|
|
|
cwd = os.getcwd()
|
|
sys.path.append(os.path.join(cwd,"..","modules","active"))
|
|
sys.path.append(os.path.join(cwd,"..","sys",))
|
|
|
|
import boggle
|
|
|
|
print "test 1",
|
|
t1=[['F', 'E', 'D', 'Qu', 'T'],
|
|
['L', 'C', 'N', 'E', 'E'],
|
|
['E', 'O', 'N', 'L', 'F'],
|
|
['A', 'T', 'L', 'R', 'I'],
|
|
['F', 'Y', 'E', 'S', 'R']]
|
|
|
|
w1 = ['sir', 'rise', 'not', 'lone', 'toe', 'tea', 'fat', 'queen', 'lot', 'leaf', 'cone', 'teen','qee']
|
|
ans = boggle.bog_verify(w1,t1)
|
|
ans.sort()
|
|
w1.sort()
|
|
|
|
i=0
|
|
for w in ans:
|
|
assert w==w1[i]
|
|
i+=1
|
|
print "passed"
|
|
|