Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I finally find the answer and hope the following notifcation could help others.
This program will add result to both output stream and returned string.
however, the return string should just contain the result of input code and the input OutputStream instance should remain the original contents and the result of input code should append to it.
That's why the test program give the proceeding error notification.
In the Java version, I failed only one test cases which name is preBufferedEnd.
This test case's input code is "nnn", which is just end of the program.
It's very strange that I got 2 different kinds of error notifications.
if I do nothing, and the following error message will show:
expected:<[]> but was:<[1]>
Then I just execute reset for the output stream and then this case will show the following error message:
expected:<[1]> but was:<[]>
from the proceeding examples, it seems there are not only one expected values here. I don't know which should be the expected value, "" or 1.
Is anyone know how to fix this issue, please?