mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
f4cd22ee1a
commit
88c77b18b8
|
@ -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)) {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue