[Patches] [Patch #101663] Regression test for Unicode database
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 26 Sep 2000 04:13:48 -0700
Patch #101663 has been updated.
Project:
Category: library
Status: Open
Summary: Regression test for Unicode database
Follow-Ups:
Date: 2000-Sep-26 03:27
By: lemburg
Comment:
This is a regression test for the available Unicode database
methods and functions.
There's one problem with it: it takes a few seconds to run because
it has to check 64k characters...
-------------------------------------------------------
Date: 2000-Sep-26 04:08
By: none
Comment:
umm. you did mean "return h.hexdigest()" rather than
"return repr(h)", didn't you?
I also think the code is quite a bit more hypergeneralized (read slow) than it really has to be... (e.g. if a method is missing or chokes on the data, why pretend it returned an empty string?)
</F>
-------------------------------------------------------
Date: 2000-Sep-26 04:13
By: lemburg
Comment:
RE: .hexdigest: good idea !
RE: generalization: the exception handling is needed because
some methods raise errors for e.g. non-numbers. I don't think
that inlining the tests will change much about the execution
speed... it will still be slow.
-------------------------------------------------------
-------------------------------------------------------
For more info, visit:
http://sourceforge.net/patch/?func=detailpatch&patch_id=101663&group_id=5470