Implement a New Feature with a Test
- •
The given unit tests specify the expected behavior of the new feature. Use the vscode's build-in tool (execute/runTests) or the runTests tool to run the given unit tests and analyze the output carefully.
- •
Analyze the existing code carefully. Before you write code, think about the shortest, simplest, most efficient way to implement the feature. Avoid code duplication.
- •
Implement the feature.
- •
Run the unit test again and carefully analyze the output. Repeat until all unit tests are passing.