Skip to content

Commit

Permalink
made test more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Oct 1, 2023
1 parent f8d299f commit 362123e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cat_win/tests/test_cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os

from cat_win import cat
from cat_win.const.argconstants import ARGS_ENDS, ARGS_REVERSE, ARGS_CHR
from cat_win.tests.mocks.std import StdOutMock
from cat_win.util.file import File
from cat_win.util.holder import Holder
Expand Down Expand Up @@ -48,7 +49,7 @@ def test_cat_output_multiple_files(self):

def test_cat_output_reverse(self):
cat.holder.set_files([test_file_path])
cat.holder.set_args([(5, '')]) #reverse
cat.holder.set_args([(ARGS_REVERSE, '')]) #reverse

check_against = test_file_content
check_against.reverse()
Expand All @@ -60,7 +61,7 @@ def test_cat_output_reverse(self):

def test_cat_output_ends_and_tabs(self):
cat.holder.set_files([test_file_path])
cat.holder.set_args([(2, ''), (25, '')]) #ends & char
cat.holder.set_args([(ARGS_ENDS, ''), (ARGS_CHR, '')]) #ends & char

check_against = ('\n'.join([c.replace('\t', '^TAB') + '$' for c in test_file_content]) +
'\n')
Expand Down

0 comments on commit 362123e

Please sign in to comment.