Fix last line
This commit is contained in:
parent
c9ca856d8f
commit
b11227be2d
@ -33,7 +33,7 @@ namespace Codeforces
|
||||
{
|
||||
if (stdOut == null)
|
||||
{
|
||||
return "";
|
||||
return string.Empty;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -43,7 +43,7 @@ namespace Codeforces
|
||||
|
||||
public static string[] GetOutputLines()
|
||||
{
|
||||
return GetOutput().Split(Environment.NewLine);
|
||||
return GetOutput().Split(Environment.NewLine).SkipLast(1).ToArray();
|
||||
}
|
||||
|
||||
public static IList<string> GetOutputLinesAsList()
|
||||
|
@ -30,11 +30,10 @@ public class Tests
|
||||
};
|
||||
|
||||
string[] actualOutput = IOTester.GetOutputLines();
|
||||
Assert.Equal(output.Length, actualOutput.Length - 1);
|
||||
Assert.Equal(output.Length, actualOutput.Length);
|
||||
for (int i = 0; i< output.Length; i++)
|
||||
{
|
||||
Assert.Equal(output[i], actualOutput[i]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user