-í
ê¶<c       sÌ    d  Z   	 d k l Z l Z  d G y  d d UWn  . e j
 o Z / e GHn X0 d GH2 d k Z 4 d G5 xL d D5 ]A Z 6 d e Z 7 e i	 e ƒ Z
 8 e e i e
 ƒ e j ƒ qƒ W9 d GH; d	 G< d
 Z = xŠ e d ƒ D= ]y Z
 > yN ? e e
 ƒ Z @ e i e ƒ Z A e e i	 e ƒ e j ƒ B e d 7Z Wn C e e f j
 o
 D n Xqó WE d GHG d Ge Gd GHJ d GK d d UQ d GHT d GU y V e d d d ƒ Wn W e j
 o
 X n XZ e d ‚ \ y# ] e d d d d d d ƒ Wn ^ e j
 o
 _ n Xa e d ‚ d y e e d d d ƒ Wn f e j
 o
 g n Xi e d ‚ k y l e d d d ƒ Wn m e j
 o
 n n Xp e d ‚ q 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   
 	 	 	#