Skip to content

Commit bddea4e

Browse files
committed
Add a test
1 parent 7e163eb commit bddea4e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cyaron/tests/io_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ def test_create_files_prefix_id(self):
3030
self.assertTrue(os.path.exists("test_prefix233.inp"))
3131
self.assertTrue(os.path.exists("test_prefix233.ans"))
3232

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+
3339
def test_write_stuff(self):
3440
with captured_output() as (out, err):
3541
with IO("test_write.in", "test_write.out") as test:

0 commit comments

Comments
 (0)