Skip to content
Browse files

Test another csv option (allow_whitespace)

  • Loading branch information...
1 parent 08f17cd commit 7bc6e9bb719915086c25adcf902d85537d2a33c3 @rwstauner committed
Showing with 7 additions and 5 deletions.
  1. +1 −1 corpus/chips.csv
  2. +1 −1 corpus/pretzels.csv
  3. +5 −3 t/module.t
View
2 corpus/chips.csv
@@ -1,4 +1,4 @@
flavor,size
-bbq,small
+bbq, small
spicy,medium
plain,large
View
2 corpus/pretzels.csv
@@ -1,4 +1,4 @@
shape,flavor|color
-rod,salty|brown
+rod,salty| brown
ring,salty|brown
knot,doughy|golden brown
View
8 t/module.t
@@ -14,15 +14,15 @@ test_import({
csvs => [qw( chips.csv pretzels.csv )],
args => [],
rs => {
- 'SELECT flavor, size FROM chips ORDER BY size' => [
+ 'SELECT flavor, size FROM chips ORDER BY flavor' => [
+ ['bbq', ' small'],
['plain', 'large'],
['spicy', 'medium'],
- ['bbq', 'small'],
],
'SELECT shape, "flavor|color" FROM pretzels ORDER BY shape' => [
['knot', 'doughy|golden brown'],
['ring', 'salty|brown'],
- ['rod', 'salty|brown'],
+ ['rod', 'salty| brown'],
]
},
});
@@ -32,10 +32,12 @@ test_import({
csvs => [qw( pretzels.csv )],
args => [
-o => 'sep_char=|',
+ -o => 'allow_whitespace=1',
],
attr => {
csv_options => {
sep_char => '|',
+ allow_whitespace => 1,
}
},
rs => {

0 comments on commit 7bc6e9b

Please sign in to comment.
Something went wrong with that request. Please try again.