Ace school

with brainly

  • Get help from millions of students
  • Learn from experts with step-by-step explanations
  • Level-up by helping others

A community for students.

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)
See more answers at brainly.com
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.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

If you implemented your classes according to the interface, the test functions probably just need something like: from WordTrigger import WordTrigger
How would you even go about executing the test function? What would the print statement look like?
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.

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

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

Not the answer you are looking for?

Search for more explanations.

Ask your own question