We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e163eb commit bddea4eCopy full SHA for bddea4e
cyaron/tests/io_test.py
@@ -30,6 +30,12 @@ def test_create_files_prefix_id(self):
30
self.assertTrue(os.path.exists("test_prefix233.inp"))
31
self.assertTrue(os.path.exists("test_prefix233.ans"))
32
33
+ def test_create_files_without_prefix_id(self):
34
+ with captured_output() as (out, err):
35
+ IO(file_prefix="test_prefix")
36
+ self.assertTrue(os.path.exists("test_prefix.in"))
37
+ self.assertTrue(os.path.exists("test_prefix.out"))
38
+
39
def test_write_stuff(self):
40
with captured_output() as (out, err):
41
with IO("test_write.in", "test_write.out") as test:
0 commit comments