anonymous
  • 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
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
rsmith6559
  • rsmith6559
If you implemented your classes according to the interface, the test functions probably just need something like: from WordTrigger import WordTrigger
anonymous
  • anonymous
How would you even go about executing the test function? What would the print statement look like?
rsmith6559
  • 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.

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

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

Looking for something else?

Not the answer you are looking for? Search for more explanations.