Exemplo n.º 1
0
 def do_stdout(self, stdout_file):
     with self.open_output() as ans, open(stdout_file, 'rb') as out:
         return compare_stream(ans, out)
Exemplo n.º 2
0
 def do_stdout(self, stdout_file):
     with open(stdout_file, 'rb') as file:
         return compare_stream(BytesIO(str(self.a + self.b).encode()), file)
Exemplo n.º 3
0
def compare(a, b):
    return compare_stream(BytesIO(a), BytesIO(b))
Exemplo n.º 4
0
Arquivo: case.py Projeto: 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)
Exemplo n.º 5
0
 def do_output(self, output_file):
     with open(output_file, 'rb') as out:
         return compare_stream(BytesIO(self.str_output.encode()), out)