ó
    6ljŠ  ã                   óN   • S r SSKrSSKJs  Jr  SSKJrJ	r	J
r
  S rS rS rS rg)zeThe benchmark's comparison, which is built on the one figure reader
rather than a reading of its own.é    N)Úgold_in_proseÚlooks_like_proseÚvalues_agreec                  óì  • [        SS5      n SSS.oU:H  o"(       d¥  [        R                  " SU4SX45      S[        R                  " 5       ;   d  [        R
                  " U 5      (       a  [        R                  " U 5      OS[        R                  " U5      S.-  nSS	U0-  n[        [        R                  " U5      5      eS =p![        S
S5      nUS   nSovUL o(       do  [        R                  " SU4SXg45      [        R                  " U5      [        R                  " U5      S.-  nSSU0-  n	[        [        R                  " U	5      5      eS =n=pS nSn[        X'5      n
SSS.oºU:H  oÌ(       dì  [        R                  " SU4SX«45      S[        R                  " 5       ;   d  [        R
                  " [         5      (       a  [        R                  " [         5      OS[        R                  " U5      [        R                  " U5      [        R                  " U
5      [        R                  " U5      S.-  nSSU0-  n[        [        R                  " U5      5      eS =n=n=n
=pË[        SS5      S   nSovUL o(       do  [        R                  " SU4SXg45      [        R                  " U5      [        R                  " U5      S.-  nSSU0-  n	[        [        R                  " U	5      5      eS =n=pg )Nú6.7 %T)ÚexactÚnumeric)ú==)z%(py0)s == %(py3)sÚboth)Úpy0Úpy3zassert %(py5)sÚpy5z	$(10,550)ú
$ (10,550)r	   )Úis)z%(py1)s is %(py4)s)Úpy1Úpy4zassert %(py6)sÚpy6F)z9%(py6)s
{%(py6)s = %(py0)s(%(py2)s, %(py4)s)
} == %(py9)sr   )r   Úpy2r   r   Úpy9zassert %(py11)sÚpy11z6.8%z6.7%)	r   Ú
@pytest_arÚ_call_reprcompareÚ@py_builtinsÚlocalsÚ_should_repr_global_nameÚ	_safereprÚAssertionErrorÚ_format_explanation)r   Ú@py_assert2Ú@py_assert1Ú@py_format4Ú@py_format6ÚspacedÚ@py_assert0Ú@py_assert3Ú@py_format5Ú@py_format7Ú@py_assert5Ú@py_assert8Ú@py_assert7Ú@py_format10Ú@py_format12s                  Ú:/home/mande/repo/quber/tests/playground/test_run_shapes.pyÚ#test_values_agree_exact_and_numericr.      s¼  € Ü˜ Ó)€DØ!¨dÑ3Ð3Ð3Ñ3×3×3×3Ò3ˆ4×3×3×3×3×3Õ3ˆ4×3×3×3Ñ3ˆ4×3×3Õ3Ð3×3×3×3×3×3×3Ñ3ä˜+ |Ó4€FØ�)ÑÐ$ Ð$ Ð$×$×$×$Ò$Ð×$×$Ô$Ð×$×$Ó$ ×$×$×$×$×$×$Ó$ØÐL˜gÐLŒ<˜Ó&ÐL°EÀeÑ*LÐLÐ*LÑL×L×L×LÒLÐ&×L×L×L×L×LÕLŒ<×L×L×LÑLŒ<×L×LÕL˜×L×LÓL˜g×L×LÓLÐ&×L×LÓLÐ*L×L×L×L×L×L×L×LÜ˜ Ó'¨	Ñ2Ð;°eÐ;°eÐ;×;×;×;Ò;Ð2×;×;Ô;Ð2×;×;Ó;°e×;×;×;×;×;×;Ô;ó    c                  ót  • Sn [        U 5      o(       d¢  SS[        R                  " 5       ;   d  [        R                  " [         5      (       a  [        R
                  " [         5      OS[        R
                  " U 5      [        R
                  " U5      S.-  n[        [        R                  " U5      5      eS =pSn [        U 5      o(       + o3(       d¢  SS[        R                  " 5       ;   d  [        R                  " [         5      (       a  [        R
                  " [         5      OS[        R
                  " U 5      [        R
                  " U5      S.-  n[        [        R                  " U5      5      eS =n =pS n [        U 5      o(       + o3(       d¢  SS[        R                  " 5       ;   d  [        R                  " [         5      (       a  [        R
                  " [         5      OS[        R
                  " U 5      [        R
                  " U5      S.-  n[        [        R                  " U5      5      eS =n =pg )Nz4The revenue for the quarter was $1.2 million overallz,assert %(py4)s
{%(py4)s = %(py0)s(%(py2)s)
}r   )r   r   r   z$1.2 millionz0assert not %(py4)s
{%(py4)s = %(py0)s(%(py2)s)
})r   r   r   r   r   r   r   r   )r    r%   r&   r(   r"   s        r-   Útest_looks_like_proser1      s3  € ØRÐSÔÐRÓSÐSÕS×S×S×S×S×SÑSÔ×S×S×SÑSÔ×S×SÕSÐR×S×SÓSÐS×S×S×S×S×SÒSØ .Ð/Ô Ó/Ð/Ô/Ð/Õ/×/×/×/×/×/Ñ/Ô×/×/×/Ñ/Ô×/×/Õ/ ×/×/Ó/Ð/×/×/×/×/×/Ô/Ø $Ð%Ô Ó%Ð%Ô%Ð%Õ%×%×%×%×%×%Ñ%Ô×%×%×%Ñ%Ô×%×%Õ% ×%×%Ó%Ð%×%×%×%×%×%Õ%r/   c                  óú  • Sn Sn[        X5      o"(       d·  SS[        R                  " 5       ;   d  [        R                  " [         5      (       a  [        R
                  " [         5      OS[        R
                  " U 5      [        R
                  " U5      [        R
                  " U5      S.-  n[        [        R                  " U5      5      eS =n =pSn Sn[        X5      o"(       d·  SS[        R                  " 5       ;   d  [        R                  " [         5      (       a  [        R
                  " [         5      OS[        R
                  " U 5      [        R
                  " U5      [        R
                  " U5      S.-  n[        [        R                  " U5      5      eS =n =pSn Sn[        X5      o"(       + oD(       d·  S	S[        R                  " 5       ;   d  [        R                  " [         5      (       a  [        R
                  " [         5      OS[        R
                  " U 5      [        R
                  " U5      [        R
                  " U5      S.-  n[        [        R                  " U5      5      eS =n =n=p$g )
Nz,Distributions were $(10,550) thousand in Q1.r   ú5assert %(py6)s
{%(py6)s = %(py0)s(%(py2)s, %(py4)s)
}r   ©r   r   r   r   z*The coupon was 6.7% for securitized loans.r   zNo figures here.z9assert not %(py6)s
{%(py6)s = %(py0)s(%(py2)s, %(py4)s)
}©r   r   r   r   r   r   r   r   )r    r%   r(   r'   r*   Ú@py_format8s         r-   Ú1test_gold_found_in_prose_as_printed_and_as_numberr7      sX  € ØGÐVÈÐVŒ=ÐGÓVÐVÕV×V×V×V×V×VÑVŒ=×V×V×VÑVŒ=×V×VÕVÐG×V×VÓVÈ×V×VÓVÐV×V×V×V×V×VÔVØEÐOÀwÐOŒ=ÐEÓOÐOÕO×O×O×O×O×OÑOŒ=×O×O×OÑOŒ=×O×OÕOÐE×O×OÓOÀw×O×OÓOÐO×O×O×O×O×OÔOØ/Ð9°Ð9Œ}Ð/Ó9Ð9Ô9Ð9Õ9×9×9×9×9×9Ñ9Œ}×9×9×9Ñ9Œ}×9×9Õ9Ð/×9×9Ó9°×9×9Ó9Ð9×9×9×9×9×9×9r/   c                  ó¦  • Sn Sn[        X5      o"(       d·  SS[        R                  " 5       ;   d  [        R                  " [         5      (       a  [        R
                  " [         5      OS[        R
                  " U 5      [        R
                  " U5      [        R
                  " U5      S.-  n[        [        R                  " U5      5      eS =n =pg )NzThe total was 1,234.z1,234r3   r   r4   r5   )r    r%   r(   r'   s       r-   Ú-test_sentence_full_stop_does_not_join_a_tokenr9      st   € ð 0Ð9°Ð9Œ=Ð/Ó9Ð9Õ9×9×9×9×9×9Ñ9Œ=×9×9×9Ñ9Œ=×9×9Õ9Ð/×9×9Ó9°×9×9Ó9Ð9×9×9×9×9×9Õ9r/   )Ú__doc__Úbuiltinsr   Ú_pytest.assertion.rewriteÚ	assertionÚrewriter   Ú%quber.playground.benchmark.run_shapesr   r   r   r.   r1   r7   r9   © r/   r-   Ú<module>rA      s+   ðñ%÷ „ × _Ñ _ò<ò&ò:ó:r/   