Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 14 Online
OpenStudy (anonymous):

Hi all, I am working on ps #5. I just implemented two new classes WordTrigger and TitleTrigger(line 89 and 102 of first pastebin). I am trying to test the classes using the unit test code provided. I am unsure of how to implement the tests. Any help would be appreciated. I added the code for both the functions I wrote and the test functions. http://pastebin.com/f8r0sstn http://pastebin.com/xH6LzfTc

OpenStudy (rsmith6559):

If you implemented your classes according to the interface, the test functions probably just need something like: from WordTrigger import WordTrigger

OpenStudy (anonymous):

How would you even go about executing the test function? What would the print statement look like?

OpenStudy (rsmith6559):

Line 280 in the test suite is the start of execution. Funny thing is, all the code after it is commented out. There has to be some more documentation that came with it. What to uncomment and when.

OpenStudy (anonymous):

I am not sure where to uncomment the code. Any insight from anyone who has completed this problem set would be appreciated.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!