November 2024
Intermediate to advanced
300 pages
7h 12m
English
Your next challenge: support selling shares of a stock. There’s not much point in buying stocks in the first place if you can’t sell them.
Madhu discusses the requirements with you:
Joe says, “okay,” then pauses a moment and asks, “what happens if you sell all the shares of a stock? The portfolio’s size—its count of unique symbols held—should come down by one, right?”
Madhu says, “Yes, a good thought, and let’s make sure we test for that.”
You both nod to Madhu and then turn to the monitor to code the first test:
| | @Test |
| | void reducesSharesOnSell ... |
Read now
Unlock full access