Ñò
[ÐKc @ s4 d d k Td d k Td d k Z d d k Z d d k l Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ
d
e f d „ ƒ YZ d e f d
„ ƒ YZ d e f d „ ƒ YZ
d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ e d j o e ƒ n d S( iÿÿÿÿ( t *N( t _vec_stringt TestBasicc B sG e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C so t i d d g d d g g d d ƒ} t i i | ƒ } t | i i d ƒ t | d d g d d g g ƒ d S(
Nt abci s long t
0123456789t dtypet Oi
t 2t long( t npt arrayt chart assert_equalR t itemsizet assert_array_equal( t selft At B( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_from_object_array s
c C s§ t i d d g d d g g d d ƒ} | i t t i i | f ƒ t i i | d t ƒ} t | i i d t i d d
ƒ i i ƒ t | d d g d d g g ƒ d S( NR u Sigma Σs long R R R t unicodei
t at UR (
R R
t failUnlessRaisest
ValueErrorR t TrueR R R
R ( R R R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_from_object_array_unicode s )c C s t i d d g d d g g ƒ } t | i i t i ƒ t i i | ƒ } t | | ƒ t | i | i ƒ t | i | i ƒ d | d <| d | d
j p t ‚ t i i
| ƒ } t | | ƒ t | i | i ƒ d | d <| d | d
j p t ‚ | d | d j p t ‚ d S( NR t foos long R t changedi s
changed again( i i ( i i ( i i ( i i ( i i ( i i ( i i ( i i ( R R
R R t typet string_R R t shapet AssertionErrort asarray( R R R t C( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_from_string_array s
c sê t i d d g d d g g ƒ ‰ t ˆ i i t i ƒ t i i ˆ ƒ } t | ˆ ƒ t | i ˆ i ƒ t | i ˆ i ƒ t i i ˆ d t ƒ} t | ˆ ƒ t | i ˆ i ƒ t | i ˆ i ƒ ‡ f d † } | i
t | ƒ d S( NR u Sigma Σs long R R c s t i i ˆ d t ƒ} d S( NR ( R R R
t False( R ( R ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt fail4 s ( R R
R R R t unicode_R R R R R t UnicodeEncodeError( R R R$ ( ( R sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_from_unicode_array( s
c C sR t i i d g ƒ } t i i d g ƒ } t | | i i t i ƒ p t ‚ d S( NR u Σ( R R R
t
issubclassR R R% R ( R R R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_unicode_upconvert8 s c C s` t i i d ƒ } t t | ƒ d ƒ t t | d ƒ d ƒ t | i i t i ƒ p t ‚ d S( NR i i i (
R R R
R t lenR( R R R R ( R R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_from_string= s c C sp t i i d ƒ } t t | ƒ d ƒ t t | d ƒ d ƒ t | i d ƒ t | i i t i ƒ p t
‚ d S( Nu Σi i i ( R R R
R R* R
R( R R R% R ( R R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_from_unicodeC s
( t __name__t
__module__R R R" R' R) R+ R, ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR s t
TestVecStringc B sG e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s d „ } | i t | ƒ d S( Nc S s t d t i d ƒ d S( NR t bogus( R R R ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ L s ( R t AttributeError( R R$ ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_non_existent_methodK s c C s d „ } | i t | ƒ d S( Nc S s t d t i d ƒ d S( Ni t strip( R R R ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ Q s ( R t TypeError( R R$ ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_non_string_arrayP s c C s d „ } | i t | ƒ d S( Nc S s t d g t i d d ƒ d S( NR R3 i ( R R R ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ V s ( R R4 ( R R$ ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_invalid_args_tupleU s c C s d „ } | i t | ƒ d S( Nc S s t d g d d ƒ d S( NR t BOGUSR3 ( R ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ [ s ( R R4 ( R R$ ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_invalid_type_descrZ s c C s d „ } | i t | ƒ d S( Nc S s t d g t i d d ƒ d S( NR R3 i ( i ( R R R ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ ` s ( R R4 ( R R$ ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_invalid_function_args_ s c C s d „ } | i t | ƒ d S( Nc S s t d g t i d ƒ d S( NR R3 ( R R t integer( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ e s ( R R4 ( R R$ ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_invalid_result_typed s c C s d „ } | i t | ƒ d S( Nc S s/ t d d g g t i d d d d g f ƒ d S( NR t deft findR t dt j( R R R: ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ j s ( R R ( R R$ ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_broadcast_errori s ( R- R. R2 R5 R6 R8 R9 R; R@ ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR/ J s t TestWhitespacec B s e Z d „ Z d „ Z RS( c C sd t i d d g d d g g ƒ i t i ƒ | _ t i d d g d d g g ƒ i t i ƒ | _ d S( Ns abc s 123 s 789 s xyz R t 123t 789t xyz( R R
t viewt chararrayR R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt setUpp s !c C sÖ t | i | i j ƒ p t ‚ t | i | i j ƒ p t ‚ t | i | i j ƒ p t ‚ t t | i | i j ƒ ƒ p t ‚ t t | i | i j ƒ ƒ p t ‚ t t | i | i j ƒ ƒ p t ‚ d S( N( t allR R R t negative( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test1v s &&( R- R. RG RJ ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyRA o s t TestCharc B s e Z d „ Z d „ Z RS( c C s( t i d d d ƒi t i ƒ | _ d S( Nt abc1R t c( R R
RE RF R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyRG s c C s7 t | i i d ƒ t | i i ƒ d i ƒ d ƒ d S( Ni i t AB( i ( R R R t uppert tostring( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_it‚ s ( R- R. RG RQ ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyRK ~ s t TestComparisonsc B sG e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C sd t i d d g d d g g ƒ i t i ƒ | _ t i d d g d d g g ƒ i t i ƒ | _ d S( NR RB RC RD t efgs 123 t 051t tuv( R R
RE RF R R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyRG ‡ s !c C s/ t | i | i j t t g t t g g ƒ d S( N( R R R R R# ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_not_equal s c C s/ t | i | i j t t g t t g g ƒ d S( N( R R R R# R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_equal s c C s/ t | i | i j t t g t t g g ƒ d S( N( R R R R# R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_greater_equal“ s c C s/ t | i | i j t t g t t g g ƒ d S( N( R R R R R# ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_less_equal– s c C s/ t | i | i j t t g t t g g ƒ d S( N( R R R R# R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_greater™ s c C s/ t | i | i j t t g t t g g ƒ d S( N( R R R R R# ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_lessœ s ( R- R. RG RV RW RX RY RZ R[ ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyRR † s t TestComparisonsMixed1c B s e Z d Z d „ Z RS( s Ticket #1276c C sG t i | ƒ t i d d g d d g g t i ƒ i t i ƒ | _ d S( NRS s 123 RT RU ( RR RG R R
R% RE RF R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyRG ¢ s
( R- R. t __doc__RG ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR\ Ÿ s t TestComparisonsMixed2c B s e Z d Z d „ Z RS( s Ticket #1276c C sG t i | ƒ t i d d g d d g g t i ƒ i t i ƒ | _ d S( NR RB RC RD ( RR RG R R
R% RE RF R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyRG ª s
( R- R. R] RG ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR^ § s t TestInformationc B s˜ e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d
„ Z d „ Z
d „ Z d
„ Z d „ Z d „ Z RS( c C sv t i d d g d d g d d g g ƒ i t i ƒ | _ t i d d g d d
g d d g g ƒ i t i ƒ | _ d S(
Ns abc t t 12345t MixedCases 123 345 t UPPERu Σ u u 12345u MixedCaseu 123 345 u UPPER( R R
RE RF R R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyRG ° s ! c C s¡ t t i i | i ƒ i i t i ƒ p t ‚ t t i i | i ƒ d d g d d g d d g g ƒ t t i i | i
ƒ d d g d d g d d g g ƒ d S( Ni i i i i ( R( R R t str_lenR R R R: R R R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_len¸ s /7c C s: t | i i d ƒ i i t i ƒ p t ‚ t | i i d ƒ d d g d d g d d g g ƒ t | i i d ƒ d d g d d g d d g g ƒ t | i i d d d ƒ d d g d d g d d g g ƒ t | i i d ƒ d d g d d g d d g g ƒ t | i i d ƒ d d g d d g d d g g ƒ d S( NR` R i i RB i (
R( R t countR R R R: R R R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_count½ s ,44:4c s½ t ˆ i i d ƒ i i t i ƒ p t ‚ t ˆ i i d ƒ d d g d d g d d g g ƒ t ˆ i i d d d ƒ d d g d d g d d g g ƒ ‡ f d † } ˆ i t
| ƒ d S( NR` t i i t 3i c s ˆ i i d d ƒ d S( NRi t fdjk( R t endswith( ( R ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ Ì s ( R( R Rk R R R t bool_R R R R4 ( R R$ ( ( R sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_endswithÈ s
,4:c C s t | i i d ƒ i i t i ƒ p t ‚ t | i i d ƒ d d g d d g d d g g ƒ t | i i d ƒ d d g d d g d d g g ƒ t | i i d d d ƒ d d g d d g d d g g ƒ t | i i d d g ƒ d d g d d g d d g g ƒ d S(
NR i iÿÿÿÿi Ri i i t 1t P( R( R R= R R R R: R R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_findÐ s
,44:c su ‡ f d † } ˆ i t | ƒ t i i d d ƒ d j p t ‚ t t i i d d ƒ i i t i ƒ p t ‚ d S( Nc s ˆ i i d ƒ d S( NR ( R t index( ( R ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ Ø s t abcbat bi (
R R R R Rq R R( R R R: ( R R$ ( ( R sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_index× s #c C s^ t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ t t g t
t
g t t
g g ƒ d S( N( R( R t isalnumR R R Rl R R R# R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_isalnumÞ s )c C s^ t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ t t g t t
g t t
g g ƒ d S( N( R( R t isalphaR R R Rl R R R# R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_isalphaâ s )c C s^ t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ t t g t
t g t t g g ƒ d S( N( R( R t isdigitR R R Rl R R R# R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_isdigitæ s )c C s^ t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ t t
g t
t
g t
t
g g ƒ d S( N( R( R t islowerR R R Rl R R R R# ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_islowerê s )c C s^ t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ t t g t t g t t g g ƒ d S( N(
R( R t isspaceR R R Rl R R R# ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_isspaceî s )c C s^ t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ t t g t t g t t g g ƒ d S( N(
R( R t istitleR R R Rl R R R# ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_istitleò s )c C s^ t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ t t g t t g t t
g g ƒ d S( N( R( R t isupperR R R Rl R R R# R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_isupperö s )c C s t | i i d ƒ i i t i ƒ p t ‚ t | i i d ƒ d d g d d g d d g g ƒ t | i i d ƒ d d g d d g d d g g ƒ t | i i d d d ƒ d d g d d g d d g g ƒ t | i i d d g ƒ d d g d d g d d g g ƒ d S(
NR i iÿÿÿÿi Ri i i Rn Ro ( R( R t rfindR R R R: R R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_rfindú s
,44:c su ‡ f d † } ˆ i t | ƒ t i i d d ƒ d j p t ‚ t t i i d d ƒ i i t i ƒ p t ‚ d S( Nc s ˆ i i d ƒ d S( NR ( R t rindex( ( R ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ s Rr Rs i (
R R R R R… R R( R R R: ( R R$ ( ( R sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_rindex s #c s½ t ˆ i i d ƒ i i t i ƒ p t ‚ t ˆ i i d ƒ d d g d d g d d g g ƒ t ˆ i i d d d ƒ d d g d d g d d g g ƒ ‡ f d † } ˆ i t
| ƒ d S( NR` Rh i i Rn i c s ˆ i i d d ƒ d S( NRi Rj ( R t
startswith( ( R ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ s ( R( R R‡ R R R Rl R R R R4 ( R R$ ( ( R sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_startswith s
,4:( R- R. RG Re Rg Rm Rp Rt Rv Rx Rz R| R~ R€ R‚ R„ R† Rˆ ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR_ ¯ s t TestMethodsc B sà e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d
„ Z d „ Z
d „ Z d
„ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C sv t i d d g d d g d d g g ƒ i t i ƒ | _ t i d d g d d
g d d g g ƒ i t i ƒ | _ d S(
Ns abc R` Ra Rb s 123 345 Rc u Σ u u 12345u MixedCaseu 123 345 u UPPER( R R
RE RF R R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyRG s ! c C s¸ t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ d d g d d g d d g g ƒ t | i i ƒ i i t i
ƒ p t ‚ t | i i ƒ d d g d d g d d g g ƒ d S( Ns abc R` Ra t Mixedcases 123 345 t Upperu σ ( R( R t
capitalizeR R R R R R R R% ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_capitalize s ) ) c C sO t | i i d ƒ i i t i ƒ p t ‚ t i d d g g ƒ } | i i d d g ƒ } t t i
i | ƒ d d g d d g d d g g ƒ | i i d d ƒ } t i | i
d ƒ ƒ p t ‚ t i | i d ƒ ƒ p t ‚ t i
i d d d g d d g g ƒ } t | i i t i ƒ p t ‚ t | d d g d
d g g ƒ d S( Ni
i i t #t FOOi i s
FOO s FOO s FOO s FOO ( R( R t centerR R R R R R
R R Rd RH R‡ Rk ( R t widthsR! ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_center& s ,4 ' c C s: t i i d g ƒ } | i d ƒ d d j p t ‚ d S( Nt 736563726574206d657373616765t hex_codeci s secret message( R R R
t decodeR ( R R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_decode4 s c C s2 | i i d ƒ } | d d d j p t ‚ d S( Nt unicode_escapei s \u03a3 ( R t encodeR ( R R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_encode8 s c C s/ | i i ƒ } | d d d j p t ‚ d S( Ni i s 123 345( R t
expandtabsR ( R t T( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_expandtabs< s c C s‚ t i i d d g | i ƒ } t | i i t i ƒ p t ‚ t t i i d d g | i ƒ d d g d d g d d g g ƒ d S( Nt ,RŽ s ,a,b,c, R` s 1,2,3,4,5s M#i#x#e#d#C#a#s#es 1,2,3, , , ,3,4,5, , , s U#P#P#E#R(
R R t joinR R( R R R R R ( R R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_join@ s c C s` t | i i d ƒ i i t i ƒ p t ‚ t i d d g g ƒ } | i i d d g ƒ } t t i
i | ƒ d d g d d g d d g g ƒ | i i d d ƒ } t | i d ƒ t
t g t
t
g t
t
g g ƒ t i | i d ƒ ƒ p t ‚ t i
i d d d g d d g g ƒ } t | i i t i ƒ p t ‚ t | d d g d
d g g ƒ d S( Ni
i i RŽ R i i s
FOO s FOO s FOO s FOO ( R( R t ljustR R R R R R
R R Rd R‡ R# R RH Rk ( R R‘ R! ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_ljustH s ,4" ' c C s¸ t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ d d g d d g d d g g ƒ t | i i ƒ i i t i
ƒ p t ‚ t | i i ƒ d d g d d
g d d g g ƒ d S(
Ns abc R` Ra t mixedcases 123 345 RO u σ u u 12345u mixedcaseu 123 345 u upper( R( R t lowerR R R R R R R R% ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_lowerW s ) ) c C sò t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ d d g d d g d d g g ƒ t | i i d d g ƒ d d g d
d g d d g g ƒ t | i i ƒ i i t i
ƒ p t ‚ t | i i ƒ d
d g d d g d d g g ƒ d S( Ns abc R` Ra Rb s 123 345 Rc Rn t Ms abct 2345t ixedCases
23 345 u Σ ( R( R t lstripR R R R R R R R% ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_lstripc s ) ) c C sx t i d j od | i i d d g ƒ } t | i i t i ƒ p t ‚ t
| d
d g d d g d d g g ƒ n d S( Ni i Ri R¥ s abc R` t 12t 45R§ s 345 Rc ( i i ( s abc R` R` ( R` R` R` ( Rª Ri R« ( R` R¥ s ixedCase( Rª Ri s 345 ( s UPPERR` R` ( t syst version_infoR t partitionR( R R R R R R ( R Ro ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_partitions s c C sÊ | i i d d g d d g ƒ } t | i i t i ƒ p t ‚ t | d d g d d g d d
g g ƒ | i i d d ƒ } t | i i t i ƒ p t ‚ t | d d g d
d g d d
g g ƒ d S( NRi R s
##########t @s abc R` s 12##########45s MixedC@ses 12########## ##########45 Rc u Σu Σbc Ra u
MixedCΣses 123 345 (
R t replaceR( R R R R R R R% ( R t R( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_replace| s ! c C s` t | i i d ƒ i i t i ƒ p t ‚ t i d d g g ƒ } | i i d d g ƒ } t t i
i | ƒ d d g d d g d d g g ƒ | i i d d ƒ } t i | i
d ƒ ƒ p t ‚ t | i d ƒ t t g t t g t t g g ƒ t i
i d d d g d d g g ƒ } t | i i t i ƒ p t ‚ t | d d g d
d g g ƒ d S( Ni
i i RŽ R i i s
FOOs FOOs FOOs FOO( R( R t rjustR R R R R R
R R Rd RH R‡ Rk R# R ( R R‘ R! ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_rjustŠ s ,4 1' c C sx t i d
j od | i i d d g ƒ } t | i i t i ƒ p t ‚ t
| d d g d d g d d g g ƒ n d S( Ni i Ri R¥ R` s abc Rª R« R§ s 123 s 45 Rc ( i i ( R` R` s abc ( R` R` R` ( s 12Ri s 45( R` R¥ s ixedCase( s 123 Ri s 45 ( R` R` s UPPER( R¬ R R t
rpartitionR( R R R R R R ( R Ro ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_rpartition˜ s c C s | i i d ƒ } t | i i t i ƒ p t ‚ t | i ƒ d g d g g d d g d g g d d d g d g g g ƒ d S(
NRi s abc R` Rª R« Rb s s 45 Rc (
R t rsplitR( R R R t object_R R t tolist( R R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_rsplit¡ s c C sò t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ d d g d d g d d g g ƒ t | i i d d g ƒ d d g d
d g d d g g ƒ t | i i ƒ i i t i
ƒ p t ‚ t | i i ƒ d
d g d d g d d g g ƒ d S( Ns abcR` Ra Rb s 123 345Rc t 5t ERs abc t 1234s 123 345 t UPPu Σ( R( R t rstripR R R R R R R R% ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_rstrip© s ) ) c C sò t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ d d g d d g d d g g ƒ t | i i d d g ƒ d d g d
d g d d
g g ƒ t | i i ƒ i i t i
ƒ p t ‚ t | i i ƒ d d g d d g d d g g ƒ d S( NR R` Ra Rb s 123 345Rc t 15t EReMs abc t 234t ixedCass
23 345 R¿ u Σ( R( R R3 R R R R R R R R% ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_strip¹ s ) ) c C s | i i d ƒ } t | i i t i ƒ p t ‚ t | i ƒ d g d g g d d g d g g d d d g d g g g ƒ d S(
NRi s abc R` Rª R« Rb s s 45 Rc (
R t splitR( R R R R¹ R R Rº ( R R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_splitÉ s c C st t i i d g ƒ i ƒ } t | i i t i ƒ p t ‚ | i d j p t ‚ t
| d ƒ d j p t ‚ d S( Ns abc
fds
weri i i ( i ( R R R
t
splitlinesR( R R R¹ R R R* ( R R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_splitlinesÑ s c C s¸ t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ d d g d d g d d g g ƒ t | i i ƒ i i t i
ƒ p t ‚ t | i i ƒ d d g d d
g d d g g ƒ d S(
Ns ABC R` Ra t mIXEDcASEs 123 345 RO u σ u u 12345u mIXEDcASEu 123 345 u upper( R( R t swapcaseR R R R R R R R% ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_swapcase× s ) ) c C s¸ t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ d d g d d g d d g g ƒ t | i i ƒ i i t i
ƒ p t ‚ t | i i ƒ d d g d d
g d d g g ƒ d S(
Ns Abc R` Ra RŠ s 123 345 R‹ u Σ u u 12345u Mixedcaseu 123 345 u Upper( R( R t titleR R R R R R R R% ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_titleã s ) ) c C s¸ t | i i ƒ i i t i ƒ p t ‚ t | i i ƒ d d g d d g d d g g ƒ t | i i ƒ i i t i
ƒ p t ‚ t | i i ƒ d d g d d
g d d g g ƒ d S(
Ns ABC R` Ra t MIXEDCASEs 123 345 Rc u Σ u u 12345u MIXEDCASEu 123 345 u UPPER( R( R RO R R R R R R R R% ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt
test_upperï s ) ) c s} ‡ f d † } ˆ i t | ƒ t ˆ i i ƒ i i t i ƒ p t ‚ t
ˆ i i ƒ t t g t t g t t g g ƒ d S( Nc s ˆ i i ƒ d S( N( R t isnumeric( ( R ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ ü s (
R R4 R( R RÒ R R R Rl R R R# R ( R R$ ( ( R sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_isnumericû s
)c s} ‡ f d † } ˆ i t | ƒ t ˆ i i ƒ i i t i ƒ p t ‚ t
ˆ i i ƒ t t g t t g t t g g ƒ d S( Nc s ˆ i i ƒ d S( N( R t isdecimal( ( R ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR$ s (
R R4 R( R RÔ R R R Rl R R R# R ( R R$ ( ( R sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_isdecimal s
)( R- R. RG R R’ R– R™ Rœ RŸ R¡ R¤ R© R¯ R³ Rµ R· R» RÁ RÆ RÈ RÊ RÍ RÏ RÑ RÓ RÕ ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyR‰ s0 t TestOperationsc B sG e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C sd t i d d g d d g g ƒ i t i ƒ | _ t i d d g d d g g ƒ i t i ƒ | _ d S( NR RB RC RD RS t 456RT RU ( R R
RE RF R R ( R ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyRG
s !c C st t i d d g d d g g ƒ i t i ƒ } t | | i | i ƒ t | i | i d d ƒ d j p t ‚ d S( Nt abcefgt 123456t 789051t xyztuvi i ( R R
RE RF R R R R* R ( R RN ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_add s c C sE t i d d g d d g g ƒ i t i ƒ } t | d | i ƒ d S( Nt qabct q123t q789t qxyzt q( R R
RE RF R R ( R t QA( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_radd s c C sÈ | i } xo d
D]g } t i | d | | d | g | d
| | d | g g ƒ i t i ƒ } t | | i | ƒ q WxF t ƒ d g D]5 } y | | Wn t j
o q‹ X| i d ƒ q‹ Wd S( Ni i i i iÅ i i t qrss, chararray can only be multiplied by integers( i i i i iÅ ( i i ( i i ( i i ( i i ( R R R
RE RF R t objectR R$ ( R R t rt Art ob( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_mul s . c C sÈ | i } xo d
D]g } t i | d | | d | g | d
| | d | g g ƒ i t i ƒ } t | | | i ƒ q WxF t ƒ d g D]5 } y | | Wn t j
o q‹ X| i d ƒ q‹ Wd S( Ni i i i iÅ i i Rä s, chararray can only be multiplied by integers( i i i i iÅ ( i i ( i i ( i i ( i i ( R R R
RE RF R Rå R R$ ( R R Ræ Rç Rè ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_rmul. s . c C sK t i d d g d d g g ƒ i t i ƒ } t i d d g d d g g ƒ } t i d d
g d d g g ƒ i t i ƒ } t | | | ƒ t i d
d g d d g g ƒ i t i ƒ } t i d d g d d g g ƒ i t i ƒ } t | | d ƒ t i d d g d d g g ƒ i t i ƒ } t | | d d g d d g g ƒ d S( s Ticket #856s %ds %fs %ss %ri i i i Ri s 7.000000t 19Rn s %.3fs 1.000R t 4i i N( R R
RE RF R ( R t FR! t FCR t A1t A2( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_mod= s -!---c C s˜ d | i t | i ƒ j p t ‚ d | i t | i ƒ j p t ‚ xI d t ƒ g D]8 } y | | i Wn t j
o qX X| i d ƒ qX Wd S( Ns %ss %ri* s6 chararray __rmod__ should fail with non-string objects( R t strR t reprRå R4 R$ ( R Rè ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt test_rmodL s $$ ( R- R. RG RÜ Rã Ré Rê Rñ Rô ( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyRÖ s t __main__( t
numpy.testingt
numpy.coret numpyR R¬ t numpy.core.multiarrayR t TestCaseR R/ RA RK RR R\ R^ R_ R‰ RÖ R- t run_module_suite( ( ( sH /usr/lib64/python2.6/site-packages/numpy/core/tests/test_defchararray.pyt