I am stuck at step 3 for ex48. I have gotten the test to run without error or displaying the input, and I have gotten it to run with a pass on any input (having filled in a basic lexicon.py). However, I can’t figure out how to make it fail. Maybe I do not understand what “Write the first line of the
test_directions test case” means?
My code for lexicon_tests.py is:
def test_directions(): assert_equal(lexicon.scan("north"), [('direction', 'north')]) #result = lexicon.scan() #assert_equal(result, [()])
Even when I comment out
#from ex48 import lexicon the program runs without errors, but without displaying the input.