'''
>>> [wordList, freqList] = computeWordFrequencies("treasure.txt")
>>> sorted(wordList)[:10]
['aback', 'abandon', 'abandoned', 'abeam', 'ablaze', 'able', 'aboard', 'abominable', 'about', 'above']
>>> sorted(wordList, reverse=True)[:10]
['youth', 'yourselves', 'yourself', 'yours', 'your', 'younker', 'youngsters', 'youngest', 'younger', 'young']
>>> sorted(freqList, reverse=True)[:10]
[920, 618, 323, 311, 311, 282, 276, 249, 236, 224]
>>> len(wordList)
5557
>>> len(wordList) == len(freqList)
True
>>> freqList.count(1)
2695
'''
#-------------------------------------------------------
from hw4b import *
#-------------------------------------------------------
if __name__ == "__main__":
    import doctest
    doctest.testmod()
