Question: Heres the test script: If a test looks like this, then your output is good: Correct Output: Your output: 1 1 : 5 9 :
Heres the test script: If a test looks like this, then your output is good:
Correct Output: Your output:
:: am :: am
:: am :: am
:: pm :: pm
:: pm :: pm
If a test looks like this, then your output is wrong:
The pipe character only appears if the lines are different.
Correct Output: Your output:
:: am :: am
:: am :: am
:: am :: am
:: am :: am
Beginning tests:
Testing noon transition ampm
timeout: failed to run command clock: No such file or directory
Correct Output: Your output:
:: am
:: am
:: pm
:: pm
Testing midnight transition ampm
timeout: failed to run command clock: No such file or directory
Correct Output: Your output:
:: pm
:: pm
:: am
:: am
Testing midnight transition hr
timeout: failed to run command clock: No such file or directory
Correct Output: Your output:
::
::
::
::
Testing :am transition ampm
timeout: failed to run command clock: No such file or directory
Correct Output: Your output:
:: am
:: am
:: am
:: am
Testing :am transition hour
timeout: failed to run command clock: No such file or directory
Correct Output: Your output:
::
::
::
::
Testing midnight transition date
timeout: failed to run command clock: No such file or directory
Correct Output: Your output:
dt
dt
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
