From: Alan P. <api...@ma...> - 2003-04-11 16:18:53
|
Here you go. I put in a TON of fields. It's just a text file, so you can copy/paste more BEGIN->END blocks to add addresses to the same file, and then edit the lines to change test parameters. This is basically every field that the Mac's ADDRESS BOOK will handle. This should hit all the max's in my code: [17.18]:> /usr/local/bin/python vcard.py Main test Already found 3 emails. No more will fit. Already found 2 home numbers. No more will fit. Already found 2 cell numbers. No more will fit. Found and processed 1 vCard entries. result['phonebook']={0: {'?offset111': 0, '?offset20c': 0, 'memo': '', 'number4': '4045551219', 'number5': '4045551210', 'number2': '4045551212', 'number3': '4045551213', 'number1': '4045551215', 'type5': 1, 'type4': 6, 'email2': 'ho...@bi...\r', 'email3': 'mo...@bi...\r', 'type3': 4, 'email1': 'wo...@bi...\r', 'serial2': 0, 'serial1': 0, 'group': 0, 'name': 'Testy\r McTest', 'url': '', 'type1': 0, 'msgringtone': 0, 'ringtone': 0, 'secret': False, '?offset00f': 0, 'type2': 2, '?offset028': 0}} Let me know if you want more, but it should be easy for you to generate any test cases you want from this. Enjoy, Alan On Monday, April 7, 2003, at 11:42 PM, Roger Binns wrote: >> http://sourceforge.net/tracker/ >> index.php?func=detail&atid=543252&aid=716417&group_id=75211 > > I am busy merging this now. I do have a request. Could you > possibly generate vcard file(s) for me to test with? What > I want to do is make a tests subdirectory with various things > in it, so several vcard files would be good, including ones > that are broken, have too much data, have more fields than > phone can cope with, and some that are "normal" :-) > > Roger > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Bitpim-devel mailing list > Bit...@li... > https://lists.sourceforge.net/lists/listinfo/bitpim-devel |