Update generator version and add one more test

git-svn-id: https://zxing.googlecode.com/svn/trunk@2123 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2012-01-20 16:45:39 +00:00
parent 6780eee869
commit d75a7467f9
3 changed files with 14 additions and 2 deletions

View file

@ -88,6 +88,18 @@ public final class AddressBookParsedResultTestCase extends Assert {
null, null, null, null, null, null);
}
@Test
public void testVCardEscape() {
doTest("BEGIN:VCARD\r\nNOTE:foo\\nbar\r\nEND:VCARD",
null, null, null, null, null, null, null, null, null, "foo\nbar");
doTest("BEGIN:VCARD\r\nNOTE:foo\\;bar\r\nEND:VCARD",
null, null, null, null, null, null, null, null, null, "foo;bar");
doTest("BEGIN:VCARD\r\nNOTE:foo\\\\bar\r\nEND:VCARD",
null, null, null, null, null, null, null, null, null, "foo\\bar");
doTest("BEGIN:VCARD\r\nNOTE:foo\\,bar\r\nEND:VCARD",
null, null, null, null, null, null, null, null, null, "foo,bar");
}
private static void doTest(String contents,
String title,
String[] names,

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>zxing</application>
<version>2</version>
<version>6</version>
</appengine-web-app>

View file

@ -1,5 +1,5 @@
application: zxing
version: 5
version: 6
runtime: python
api_version: 1