Skip to content

Commit

Permalink
#46 Parsing: 401 Congress Ave, Suite 2450
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidzen committed Mar 29, 2015
1 parent 16d58b8 commit 3a4d397
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ public void testStringInDblQuotes() throws Exception {
String text = doc.field("text");
assertEquals("Hello, quotes are here!", text);
}
@Test
public void testStringStartedFromDigit() throws Exception {
String cfgJson = "{source: { content: { value: 'address\n\"401 Congress Ave, Suite 2450\"' } }, extractor : { row: {} }, transformers : [{ csv: {} }], loader: { test: {} } }";
process(cfgJson);
List<ODocument> res = getResult();
ODocument doc = res.get(0);
String text = doc.field("address");
assertEquals("401 Congress Ave, Suite 2450", text);
}

@Test
public void testFloat() {
Expand Down

0 comments on commit 3a4d397

Please sign in to comment.