Skip to content

Commit

Permalink
added test for -N option
Browse files Browse the repository at this point in the history
  • Loading branch information
athalhammer committed Oct 3, 2023
1 parent 61eed27 commit d5dbe28
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_utilities/test_csvcut.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ def test_simple(self):
['1', '3'],
])

def test_column_numbers(self):
self.assertRows(['-c', '1,3', '-N', 'examples/dummy.csv'], [
['1~a', '3~c'],
['1~1', '3~3'],
])

def test_linenumbers(self):
self.assertRows(['-c', '1,3', '-l', 'examples/dummy.csv'], [
['line_number', 'a', 'c'],
Expand Down

0 comments on commit d5dbe28

Please sign in to comment.