Skip to content

Commit

Permalink
create/update regression tests for CSV files
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Hall committed Jan 24, 2025
1 parent d5a27e9 commit fa715c5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
3 changes: 3 additions & 0 deletions tests/syntax-tests/highlighted/CSV/comma-delimited.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
foo,bar,baz,this|that,test,colors,cycle
1.2,1.7,2.5,blah;cool,test,colors,cycle

12 changes: 6 additions & 6 deletions tests/syntax-tests/highlighted/CSV/comma_in_quotes.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
first,last,address,city,zip
John,Doe,120 any st.,"Anytown, WW",08123
a,b
1,"ha 
first,last,address,city,zip
John,Doe,120 any st.,"Anytown, WW",08123
a,b
1,"ha 
""ha"" 
ha",120 any st.,"Anytown, WW",08123
3,4,120 any st.,"Anytown, WW",08123
ha",120 any st.,"Anytown, WW",08123
3,4,120 any st.,"Anytown, WW",08123
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
foo|bar|baz
1,2|1,7|2,7
1,5|8,5|-5,5
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
foo;bar;baz
1,2;1,7;2,7
1,5;8,5;-5,5
3 changes: 3 additions & 0 deletions tests/syntax-tests/highlighted/CSV/simple.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
foo bar baz|;, test hello world tsv
1,2 1,7 2,7 a b c "hello again" tsv
";|," ;|, baz test "hello world" tsv

0 comments on commit fa715c5

Please # to comment.