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.
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 :)
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.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
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.