Skip to content

Commit

Permalink
test(csvformat): Add --out-asv test, #1232
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Feb 15, 2024
1 parent 3b78663 commit 83523f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_utilities/test_csvformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,17 @@ def test_delimiter(self):
'1|2|3',
])

def test_tab_delimiter(self):
def test_tabs(self):
self.assertLines(['-T', 'examples/dummy.csv'], [
'a\tb\tc',
'1\t2\t3',
])

def test_asv(self):
self.assertLines(['-A', 'examples/dummy.csv'], [
'a\x1fb\x1fc\x1e1\x1f2\x1f3\x1e',
], newline_at_eof=False)

def test_quotechar(self):
input_file = io.BytesIO(b'a,b,c\n1*2,3,4\n')

Expand Down

0 comments on commit 83523f7

Please sign in to comment.