-
Notifications
You must be signed in to change notification settings - Fork 0
/
delim_parser_test_data.txt
65 lines (47 loc) · 1.48 KB
/
delim_parser_test_data.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# This is a test data file for test.rb. Blank lines and comment lines
# (those starting with '#') are ignored. Data lines alternate between
# test data and expected results.
#
# Results are strings obtained by parsing the data line, which returns
# an array, and printing that array joined with '*'. That is,
#
# array = parse_data_line()
# results = array.join('*')
#
some,comma-separated,data
some*comma-separated*data
empty,,column
empty**column
a,trailing,empty column,
a*trailing*empty column*
,,,
***
"quote at col end",next
quote at col end*next
how,about,"col in middle",this,time
how*about*col in middle*this*time
two,"quoted cols","in a row"
two*quoted cols*in a row
"quoted,comma",in,first,col
quoted,comma*in*first*col
"simple ""doubled quotes"" test"
simple "doubled quotes" test
"doubled at end ""quote""",ok
doubled at end "quote"*ok
"doubled at end ""quote"""
doubled at end "quote"
what happens when "quoted" simply with no outer quotes?
what happens when "quoted" simply with no outer quotes?
what happens when ""double quoted"" with no outer quotes?
what happens when ""double quoted"" with no outer quotes?
"""double quotes"" right at beginning",eh?
"double quotes" right at beginning*eh?
one stupid "quote in the middle should be ok
one stupid "quote in the middle should be ok
one stupid "quote in the middle,another column follows
one stupid "quote in the middle*another column follows
backslash \test
backslash test
backslashed\, that comma was
backslashed, that comma was