#Name: ----------
#AndrewID: ------

######User-defined functions######

#Task 1:

def isSentence(sentence):
    return None

def countWords(sentence):
    return None

def differentWords(sentence):
    return None

#Task 2:

def count():
    pass

def different():
    pass

def run():
    pass

######Test Functions##############

def testIsSentence():
    print "Testing isSentence...",
    assert(isSentence("Sentece analysis is fun!"))
    assert(not isSentence("This  is  not  correct."))
    assert(not isSentence("An elephant is a mouse with an operating system"))
    assert(not isSentence("this will fail..."))
    print "all tests passed!"

def testCountWords():
    print "Testing countWords...",
    assert(countWords("Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn.")==6)
    assert(countWords("What about malformed  input?") == -1)
    assert(countWords("How about repeated words words?") == 5)
    print "all tests passed!"

def testDifferentWords():
    print "Testing differentWords...",
    assert(differentWords("No words are different here.") == 5)
    assert(differentWords("Only a CA can track down another CA.") == 7)
    assert(differentWords("klein bottle for rent--inquire within. ") == -1)
    print "all tests passed!"

def testRun():
    "Testing run..."
    run()
    #You should write the strings tested in the previous two test into the
    #Input box and then use your GUI to make sure they return the correct
    #answers
testIsSentence()
testCountWords()
testDifferentWords()
testRun()
