
    hk                     N    S SK Jr  S SKrSSKJr    " S S5      r " S S5      rg)	    )print_functionN   )YAMLc                   z    \ rS rSrS rS rS rS rS rS r	S r
S	 rS
 rS rS rS rS rS rS rS rS rSrg)TestNoIndent   c                     [        5       nSnSnUR                  UR                  U5      5      n[        U5        XBS-   :X  d   eg )N%!PS-Adobe-2.0z$
        --- |
          {}
        
r   loadformatprintselfyamlsinpds        ^/home/james-whalen/.local/lib/python3.13/site-packages/srsly/tests/ruamel_yaml/test_literal.py+test_root_literal_scalar_indent_example_9_58TestNoIndent.test_root_literal_scalar_indent_example_9_5   B    v IIcjjm$aH}}    c                     [        5       nSnSnUR                  UR                  U5      5      n[        U5        XBS-   :X  d   eg )N
testing123"
        --- |
        {}
        r   r   r   s        r   "test_root_literal_scalar_no_indent/TestNoIndent.test_root_literal_scalar_no_indent*   B    v IIcjjm$aH}}r   c                     [        5       nSnSnUR                  UR                  U5      5      n[        U5        XBS-   :X  d   eg )Nr   z4
        %YAML 1.1
        --- |
        {}
        r   r   r   s        r   &test_root_literal_scalar_no_indent_1_13TestNoIndent.test_root_literal_scalar_no_indent_1_15   sB    v
 IIcjjm$aH}}r   c                     SSK Jn  SSKJn  SnSnU" U" UR	                  U5      5      5      n[        U5        XSS-   :X  d   eg )Nr   )dedent)	safe_loadr   z6
        %YAML 1.1
        --- |
          {}
        r   )textwrapr%   srsly.ruamel_yamlr&   r   r   )r   r%   r&   r   r   r   s         r   0test_root_literal_scalar_no_indent_1_1_old_style=TestNoIndent.test_root_literal_scalar_no_indent_1_1_old_styleA   sB    #/
 fSZZ]+,aH}}r   c                 p    [        5       nSUl        Sn SnUR                  UR                  U5      5        g )NTr   zD
            %YAML 1.1
            --- |
            {}
            )r   1root_level_block_style_scalar_no_indent_error_1_1r   r   )r   r   r   r   s       r   /test_root_literal_scalar_no_indent_1_1_no_raise<TestNoIndent.test_root_literal_scalar_no_indent_1_1_no_raiseO   s8     vAE>C
 IIcjjm$r   c                     [        5       nSnSnUR                  UR                  U5      5      n[        U5        XBS-   :X  d   eg )Nr   z$
        --- |1
         {}
        r   r   r   s        r   *test_root_literal_scalar_indent_offset_one7TestNoIndent.test_root_literal_scalar_indent_offset_one^   r    r   c                     [        5       nSnSnUR                  UR                  U5      5      n[        U5        XBS-   :X  d   eg )Nr   z'
        --- |4
            {}
        r   r   r   s        r   +test_root_literal_scalar_indent_offset_four8TestNoIndent.test_root_literal_scalar_indent_offset_fouri   r    r   c                     [        5       nSnSnUR                  UR                  US95      n[        U5        XBS-   S-  :X  d   eg )Nz testing123z8
        --- |4
            {s}
            {s}
        )r   r      r   r   s        r   8test_root_literal_scalar_indent_offset_two_leading_spaceETestNoIndent.test_root_literal_scalar_indent_offset_two_leading_spacet   sJ    v
 IIcjj1jo&aXN"""r   c                     [        5       nSnSnUR                  UR                  U5      5      n[        U5        XBS-   :X  d   eg )Nr
   r   r   r   r   s        r   *test_root_literal_scalar_no_indent_special7TestNoIndent.test_root_literal_scalar_no_indent_special   r   r   c                     [        5       nSnSnUR                  UR                  U5      5      n[        U5        XBS-   :X  d   eg )Nr
   z$
        --- >
          {}
        r   r   r   s        r   test_root_folding_scalar_indent,TestNoIndent.test_root_folding_scalar_indent   r   r   c                     [        5       nSnSnUR                  UR                  U5      5      n[        U5        XBS-   :X  d   eg )Nr   "
        --- >
        {}
        r   r   r   s        r   "test_root_folding_scalar_no_indent/TestNoIndent.test_root_folding_scalar_no_indent   r    r   c                     [        5       nSnSnUR                  UR                  U5      5      n[        U5        XBS-   :X  d   eg )Nr
   r@   r   r   r   s        r   *test_root_folding_scalar_no_indent_special7TestNoIndent.test_root_folding_scalar_no_indent_special   r   r   c                     [        SSS9nSnSnSn[        UR                  UR                  X#5      5      5       H  u  pV[	        SU5        SS/U   U:X  a  M   e   g )	NsafeT)typpureabcklmz<
        --- |-
        {}
        --- |
        {}
        zd1:zklm
)r   	enumerateload_allr   r   )r   r   s1s2r   idxd1s          r   test_root_literal_multi_doc(TestNoIndent.test_root_literal_multi_doc   sg    T* !szz"/A!BCGC%7#C(B... Dr   c                 L    [        5       nSUl        SnUR                  U5        g )NTzT
        --- |-
          %YAML 1.3
          ---
          this: is a test
        r   explicit_start
round_tripr   r   r   s      r   +test_root_literal_doc_indent_directives_end8TestNoIndent.test_root_literal_doc_indent_directives_end   &    v" 	r   c                 L    [        5       nSUl        SnUR                  U5        g )NTzI
        --- |-
          some more
          ...
          text
        rU   rX   s      r   )test_root_literal_doc_indent_document_end6TestNoIndent.test_root_literal_doc_indent_document_end   r[   r   c                     [        5       nSUl        SnUR                  U5      n[        [	        U5      [        U5      5        UR                  U5        g )NTz<
        --- |2
           some more
          text
        r   rV   r   r   typereprrW   r   r   r   r   s       r   #test_root_literal_doc_indent_marker0TestNoIndent.test_root_literal_doc_indent_marker   sE    v"
 IIcNd1gtAwr   c                     [        5       nSUl        SnUR                  U5      n[        [	        U5      [        U5      5        UR                  U5        g )NTzG
        ---
        a: |2
           some more
          text
        r`   rc   s       r   %test_nested_literal_doc_indent_marker2TestNoIndent.test_nested_literal_doc_indent_marker   sE    v" IIcNd1gtAwr    N)__name__
__module____qualname____firstlineno__r   r   r"   r)   r-   r0   r3   r7   r:   r=   rA   rD   rR   rY   r]   rd   rg   __static_attributes__ri   r   r   r   r      sW    		
%		
#				/		
r   r   c                   D    \ rS rSrS rS rS rS rS rS r	S r
S	 rS
rg)Test_RoundTripLiteral   c                     [        5       nSUl        SnSnUR                  U5      nUR                  U5      nUR	                  XCS9  g )NTr   r   comparer   rV   r   r   dumpr   r   r   ysr   s        r   %test_rt_root_literal_scalar_no_indent;Test_RoundTripLiteral.test_rt_root_literal_scalar_no_indent   G    v" YYq\IIbM		!	 r   c                     [        5       nSUl        SUl        SnSnUR                  U5      nUR	                  U5      nUR                  XCS9  g )NT   r   z&
        --- |
            {}
        rs   r   rV   indentr   r   rv   rw   s        r   "test_rt_root_literal_scalar_indent8Test_RoundTripLiteral.test_rt_root_literal_scalar_indent   N    v" YYq\IIbM		!	 r   c                     [        5       nSUl        SUl        SnSnUR                  U5      nUR	                  U5      nUR                  XCS9  g )NTr   r    
        ---
        {}
        rs   r~   rw   s        r   #test_rt_root_plain_scalar_no_indent9Test_RoundTripLiteral.test_rt_root_plain_scalar_no_indent  r   r   c                     [        5       nSUl        SUl        SnSnUR                  U5      nUR	                  U5      nUR                  XCS9  g )NTr}   r   $
        ---
            {}
        rs   r~   rw   s        r   %test_rt_root_plain_scalar_expl_indent;Test_RoundTripLiteral.test_rt_root_plain_scalar_expl_indent  r   r   c                     [        5       nSUl        SUl        SnSnUR                  U5      nUR	                  U5      nUR                  XCS9  g )NTr}   z'testing: 123'r   rs   r~   rw   s        r   "test_rt_root_sq_scalar_expl_indent8Test_RoundTripLiteral.test_rt_root_sq_scalar_expl_indent  sN    v" YYq\IIbM		!	 r   c                     [        5       nSUl        SUl        SnSnUR                  U5      nUR	                  U5      nUR                  XCS9  g )NTr   z"'testing123"r   rs   r~   rw   s        r   "test_rt_root_dq_scalar_expl_indent8Test_RoundTripLiteral.test_rt_root_dq_scalar_expl_indent+  sP     v" YYq\IIbM		!	 r   c                     [        5       nSUl        SnSnUR                  U5      nUR                  U5      nUR	                  XCS9  g )NTr   z#
        --- |-
        {}
        rs   ru   rw   s        r   ,test_rt_root_literal_scalar_no_indent_no_eolBTest_RoundTripLiteral.test_rt_root_literal_scalar_no_indent_no_eol:  r{   r   c                     [        5       nSnSnUR                  U5      nUR                  U5      nUR                  XCS9  g )Nr   z"
        - |
          {}
        rs   )r   r   r   rv   rw   s        r   test_rt_non_root_literal_scalar5Test_RoundTripLiteral.test_rt_non_root_literal_scalarF  s?    v YYq\IIbM		!	 r   ri   N)rj   rk   rl   rm   ry   r   r   r   r   r   r   r   rn   ri   r   r   rp   rp      s*    
!!!!!!
!	!r   rp   )
__future__r   pytest	roundtripr   r   rp   ri   r   r   <module>r      s,    %  *I IXe! e!r   