예제 #1
0
파일: case.py 프로젝트: KawashiroNitori/jd4
 def do_stdout(self, stdout_file):
     with self.open_output() as ans, open(stdout_file, 'rb') as out:
         return compare_stream(ans, out)
예제 #2
0
파일: case.py 프로젝트: KawashiroNitori/jd4
 def do_stdout(self, stdout_file):
     with open(stdout_file, 'rb') as file:
         return compare_stream(BytesIO(str(self.a + self.b).encode()), file)
예제 #3
0
def compare(a, b):
    return compare_stream(BytesIO(a), BytesIO(b))
예제 #4
0
파일: case.py 프로젝트: tc-imba/jd4
 def do_output(self, output_file):
     with open(output_file, 'rb') as out, self.open_output() as ans:
         return compare_stream(ans, out)
예제 #5
0
파일: case.py 프로젝트: duqingyude/jd4
 def do_output(self, output_file):
     with open(output_file, 'rb') as out:
         return compare_stream(BytesIO(self.str_output.encode()), out)