Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Jan 4, 2024
1 parent 8086ad3 commit 7581f9f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_shuffle.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
def test_shuffle():
cwd = os.path.dirname(__file__)

src, tgt = file_shuffle(os.path.join(cwd, "data", "src.txt"), os.path.join(cwd, "data", "tgt.txt"))
in_src = os.path.join(cwd, "data", "src.txt")
in_tgt = os.path.join(cwd, "data", "tgt.txt")
src, tgt = file_shuffle(in_src, in_tgt)

assert os.path.isfile(src)
assert os.path.isfile(tgt)

assert sum(1 for _ in open(src)) == 5
assert sum(1 for _ in open(tgt)) == 5
assert sum(1 for _ in open(src)) == sum(1 for _ in open(in_src))
assert sum(1 for _ in open(tgt)) == sum(1 for _ in open(in_tgt))


0 comments on commit 7581f9f

Please sign in to comment.