Ñò
•à"Ic           @   sN   d  d k  Z  d  d k Z d  d k l Z d  d k Z d e f d „  ƒ  YZ d S(   iÿÿÿÿN(   t   TestCaset   TestScanStringc           B   s#   e  Z d  „  Z d „  Z d „  Z RS(   c         C   s   |  i  t i i ƒ d  S(   N(   t   _test_scanstringt   jsont   decodert   py_scanstring(   t   self(    (    s7   /mit/python/lib/python2.6/json/tests/test_scanstring.pyt   test_py_scanstring   s    c         C   s   |  i  t i i ƒ d  S(   N(   R   R   R   t   c_scanstring(   R   (    (    s7   /mit/python/lib/python2.6/json/tests/test_scanstring.pyt   test_c_scanstring   s    c         C   sÂ  |  i  | d d d  t ƒ d< ƒ t i d j o# |  i  | d d d  t ƒ d= ƒ n  |  i  | d d d  t ƒ d> ƒ |  i  | d	 d d  t ƒ d? ƒ |  i  | d d d  t ƒ d@ ƒ |  i  | d d d  t ƒ dA ƒ |  i  | d d d  t ƒ dB ƒ |  i  | d d d  t ƒ dC ƒ |  i  | d d d  t ƒ dD ƒ |  i  | d d d  t ƒ dE ƒ |  i  | d d d  t ƒ dF ƒ |  i  | d  d d  t ƒ dG ƒ |  i  | d# d d  t ƒ dH ƒ |  i  | d% d d  t ƒ dI ƒ |  i  | d' d d  t ƒ dJ ƒ |  i  | d* d d  t ƒ dK ƒ |  i  | d, d d  t ƒ dL ƒ |  i  | d/ d d  t ƒ dM ƒ |  i  | d1 d d  t ƒ dN ƒ |  i  | d4 d d  t ƒ dO ƒ |  i  | d7 d d  t ƒ dP ƒ |  i  | d9 d d  t ƒ dQ ƒ d  S(R   Ns   "z\ud834\udd20x"i   u   zð„ xi   iÿÿ  u   "zð„ x"i   i   s   "\u007b"u   {i   s<   "A JSON payload should be an object or array, not a string."u:   A JSON payload should be an object or array, not a string.i<   s   ["Unclosed array"i   u   Unclosed arrayi   s   ["extra comma",]u   extra commai   s   ["double extra comma",,]u   double extra commai   s   ["Comma after the close"],u   Comma after the closei   s   ["Extra close"]]u   Extra closes   {"Extra comma": true,}u   Extra commas:   {"Extra value after close": true} "misplaced quoted value"u   Extra value after closei   s   {"Illegal expression": 1 + 2}u   Illegal expressions   {"Illegal invocation": alert()}u   Illegal invocations+   {"Numbers cannot have leading zeroes": 013}u"   Numbers cannot have leading zeroesi%   s   {"Numbers cannot be hex": 0x14}u   Numbers cannot be hexs2   [[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]u   Too deepi   s   {"Missing colon" null}u   Missing colons   {"Double colon":: null}u   Double coloni   s    {"Comma instead of colon", null}u   Comma instead of coloni   s!   ["Colon instead of comma": false]u   Colon instead of commas   ["Bad value", truth]u	   Bad valuei   (   u   zð„ xi   (   u   zð„ xi   (   u   zð„ xi   (   u   {i   (   u:   A JSON payload should be an object or array, not a string.i<   (   u   Unclosed arrayi   (   u   extra commai   (   u   double extra commai   (   u   Comma after the closei   (   u   Extra closei   (   u   Extra commai   (   u   Extra value after closei   (   u   Illegal expressioni   (   u   Illegal invocationi   (   u"   Numbers cannot have leading zeroesi%   (   u   Numbers cannot be hexi   (   u   Too deepi   (   u   Missing coloni   (   u   Double coloni   (   u   Comma instead of coloni   (   u   Colon instead of commai   (   u	   Bad valuei   (   t   assertEqualst   Nonet   Truet   syst
   maxunicode(   R   t
   scanstring(    (    s7   /mit/python/lib/python2.6/json/tests/test_scanstring.pyR      s†    (   t   __name__t
   __module__R   R	   R   (    (    (    s7   /mit/python/lib/python2.6/json/tests/test_scanstring.pyR      s   		(   R   t   decimalt   unittestR    t   json.decoderR   R   (    (    (    s7   /mit/python/lib/python2.6/json/tests/test_scanstring.pyt   <module>   s   