Skip to content

Commit 2e70b10

Browse files
committed
test(sum_cms): Test judge written in Rust
1 parent ccacd3c commit 2e70b10

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_cms.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,19 @@ def modification_fn(raw_config):
184184
modify_config(self.task_dir, modification_fn)
185185

186186

187+
class TestRustJudge(TestSumCMS):
188+
"""Output without newline at the end with out_format=binary."""
189+
190+
def expecting_success(self) -> bool:
191+
return True
192+
193+
def modify_task(self) -> None:
194+
def modification_fn(raw_config):
195+
raw_config["tests"]["out_judge"] = "judge_rust"
196+
raw_config["tests"]["judge_needs_out"] = "no"
197+
198+
modify_config(self.task_dir, modification_fn)
199+
200+
187201
if __name__ == "__main__":
188202
unittest.main(verbosity=2)

0 commit comments

Comments
 (0)