
    8tf
                     B    d dl mZ d dlZd dlZd dlmZ  G d de      Zy)    )TestCaseN)StringIOc                       e Zd Zd Zd Zd Zy)
TestIndentc           
         dgdgg dddddidd	d
g}t        j                  d      }t        j                  |      }t        j                  |ddd      }t        j                  |ddd      }t        j                  |ddd      }t        j                  |      }t        j                  |      }t        j                  |      }	t        j                  |      }
| j                  ||       | j                  ||       | j                  |	|       | j                  |
|       | j                  ||j                  dd             | j                  ||j                  dd             | j                  ||       y )Nblorpiewhoopsz	d-shtaeouz	d-nthiouhzi-vhbjkhnthniftyW   yesF)field	morefielda3          [
        	[
        		"blorpie"
        	],
        	[
        		"whoops"
        	],
        	[],
        	"d-shtaeou",
        	"d-nthiouh",
        	"i-vhbjkhnth",
        	{
        		"nifty": 87
        	},
        	{
        		"field": "yes",
        		"morefield": false
        	}
        ]	T,: )indent	sort_keys
separatorsz     )textwrapdedentjsondumpsloadsassertEqualreplace)selfhexpectd1d2d3d4h1h2h3h4s              f/var/www/html/software/conda/envs/higlass/lib/python3.12/site-packages/simplejson/tests/test_indent.pytest_indentzTestIndent.test_indent   sF   [8*b+{r]e%@C  " , ZZ]ZZ$$;OZZ$$;OZZ!tLZZ^ZZ^ZZ^ZZ^QQQQV^^D$78V^^D$78 	V$    c                 @     ddi fd} |dd        |d d       y )N      c                     t        j                  |       }j                  ||       t               }t        j                  ||        j                  |j                         |       y )Nr   )r   r   r   r   dumpgetvalue)r   expectedr!   sior   r   s       r)   checkz&TestIndent.test_indent0.<locals>.check:   sP    Af-BR**CIIaV,S\\^X6r+   r   z
{
"3": 1
}z{"3": 1} )r   r5   r   s   ` @r)   test_indent0zTestIndent.test_indent08   s'    F	7 	a dJr+   c                    g d}d}d}| j                  |t        j                  |dd             | j                  |t        j                  |dd             | j                  |t        j                  |d             y )	N)r.   r   r-      z[
1,
2,
3,
4
]z[
1, 
2, 
3, 
4
]r   )z, r   )r   r   r   r0   )r   r   r   )r   lstr    expect_spacess       r)   test_separatorszTestIndent.test_separatorsG   sw    &0JJs1>	@ 	JJs1=	? 	JJs1%	'r+   N)__name__
__module____qualname__r*   r7   r<   r6   r+   r)   r   r      s    .%` 'r+   r   )unittestr   r   
simplejsonr   simplejson.compatr   r   r6   r+   r)   <module>rC      s       &O' O'r+   