@pytest.mark.parametrize('parallel', [True, False])
def test_delimiter(parallel, read_basic):
 text = '\nCOL1 COL2 COL3\n1 A -1\n2 B -2\n'
 expected = Table([[1, 2], ['A', 'B'], [(-1), (-2)]], names=('COL1', 'COL2', 'COL3'))
 for sep in ' , DCTB #;':
  table = read_basic(text.replace(' ', sep), delimiter=sep, parallel=parallel)
  assert_table_equal(table, expected)

@ pytest . mark . parametrize ( 'parallel' , [ True , False ] ) def test_delimiter ( parallel , read_basic ) : text = '\nCOL1 COL2 COL3\n1 A -1\n2 B -2\n' expected = Table ( [ [ 1 , 2 ] , [ 'A' , 'B' ] , [ ( - 1 ) , ( - 2 ) ] ] , names = ( 'COL1' , 'COL2' , 'COL3' ) ) for sep in ' , DCTB #;' : table = read_basic ( text . replace ( ' ' , sep ) , delimiter = sep , parallel = parallel ) assert_table_equal ( table , expected )
make sure that different delimiters work as expected .