Fixed unit test fail from vCard change

git-svn-id: https://zxing.googlecode.com/svn/trunk@1122 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2009-11-23 09:37:58 +00:00
parent f4cd22ee1a
commit 88c77b18b8
2 changed files with 4 additions and 2 deletions

View file

@ -115,6 +115,9 @@ final class VCardResultParser extends ResultParser {
}
private static boolean isLikeVCardDate(String value) {
if (value == null) {
return true;
}
// Not really sure this is true but matches practice
// Mach YYYYMMDD
if (isStringOfDigits(value, 8)) {

View file

@ -181,8 +181,7 @@ public final class ParsedReaderResultTestCase extends TestCase {
ParsedResultType.ADDRESSBOOK);
doTestResult("BEGIN:VCARD\r\nADR;HOME:123 Main St\r\nVERSION:2.1\r\nN:Owen;Sean\r\nEND:VCARD",
"Sean Owen\n123 Main St", ParsedResultType.ADDRESSBOOK);
doTestResult("BEGIN:VCARD", "begin:VCARD",
ParsedResultType.URI); // yeah we end up guessing "URI" here
doTestResult("BEGIN:VCARD", "", ParsedResultType.ADDRESSBOOK);
}
public void testVEvent() {