Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am trying to get this piece of code to run these 3 tests: C++ Language # of Tests Input Type Type of Testing Input
I am trying to get this piece of code to run these 3 tests: C++ Language
# of Tests | Input Type | Type of Testing | Input | Output | Test Result | Comments |
1 | Expected | Black Box | 10, 2 | 4, 2 | Pass | Executes Normally |
2 | Unexpected | White Box | 8, "Avi" | Invalid Input | Fail | Input is invalid |
3 | Expected | Black Box | 1, 3 | 0, 1 | Pass | Executes Normally |
I am trying to get the output to have all 3 tests visible in the output, but I am having issues with getting the "Invalid Input" to allow for test 3 to be tried in the output screen. I am using a for loop for the 3 tests.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started