-í
ê¶<c       s'  d  Z  d k l Z l Z d Gy d d UWn e j
 o Z e GHn Xd GHd k Z d Gx@ d D]8 Z d e Z e i	 e ƒ Z
 e e i e
 ƒ e j ƒ q_ Wd GHd	 Gd
 Z xr e d ƒ D]d Z
 yB e e
 ƒ Z e i e ƒ Z e e i	 e ƒ e j ƒ e d 7Z Wn e e f j
 o n Xq· Wd GHd Ge Gd GHd Gd d Ud GHd Gy e d d d ƒ Wn e j
 o n Xe d ‚ y  e d d d d d d ƒ Wn e j
 o n Xe d ‚ y e d d d ƒ Wn e j
 o n Xe d ‚ y e d d d ƒ Wn e j
 o n Xe d ‚ d GHd S(   s¾    Test script for the Unicode implementation.

Written by Bill Tutt.
Modified for Python 2.0 by Fredrik Lundh (fredrik@pythonware.com)

(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.

(   s   verifys   verbosesA   Testing General Unicode Character Name, and case insensitivity...sQ  
s = u"\N{LATIN CAPITAL LETTER T}" \
    u"\N{LATIN SMALL LETTER H}" \
    u"\N{LATIN SMALL LETTER E}" \
    u"\N{SPACE}" \
    u"\N{LATIN SMALL LETTER R}" \
    u"\N{LATIN CAPITAL LETTER E}" \
    u"\N{LATIN SMALL LETTER D}" \
    u"\N{SPACE}" \
    u"\N{LATIN SMALL LETTER f}" \
    u"\N{LATIN CAPITAL LeTtEr o}" \
    u"\N{LATIN SMaLl LETTER x}" \
    u"\N{SPACE}" \
    u"\N{LATIN SMALL LETTER A}" \
    u"\N{LATIN SMALL LETTER T}" \
    u"\N{LATIN SMALL LETTER E}" \
    u"\N{SPACE}" \
    u"\N{LATIN SMALL LETTER T}" \
    u"\N{LATIN SMALL LETTER H}" \
    u"\N{LATIN SMALL LETTER E}" \
    u"\N{SpAcE}" \
    u"\N{LATIN SMALL LETTER S}" \
    u"\N{LATIN SMALL LETTER H}" \
    u"\N{LATIN SMALL LETTER E}" \
    u"\N{LATIN SMALL LETTER E}" \
    u"\N{LATIN SMALL LETTER P}" \
    u"\N{FULL STOP}"
verify(s == u"The rEd fOx ate the sheep.", s)
Ns   done.s    Testing name to code mapping....s   SPAMs   LATIN SMALL LETTER %ss3   Testing code to name mapping for all characters....i    i   i   s   Founds'   characters in the unicode name databases>   Testing misc. symbols for unicode character name expansion....sÝ   
verify(u"\N{PILCROW SIGN}" == u"\u00b6")
verify(u"\N{REPLACEMENT CHARACTER}" == u"\uFFFD")
verify(u"\N{HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK}" == u"\uFF9F")
verify(u"\N{FULLWIDTH LATIN SMALL LETTER A}" == u"\uFF41")
sB   Testing unicode character name expansion strict error handling....s   \N{blah}s   unicode-escapes   stricts>   failed to raise an exception when given a bogus character names   \N{s   xi † s   }sH   failed to raise an exception when given a very long bogus character names   \N{SPACEs9   failed to raise an exception for a missing closing brace.s   \NSPACEs9   failed to raise an exception for a missing opening brace.(   s   __doc__s   test_supports   verifys   verboses   UnicodeErrors   vs   unicodedatas   chars   names   lookups   codes   counts   ranges   unichrs   KeyErrors
   ValueErrors   unicodes   AssertionError(   s   counts   unicodedatas   codes   verboses   verifys   chars   vs   name(    (    s#   /usr/lib/python2.2/test/test_ucn.pys   ? sj   
	 
 		 			