o
    1ήcZ                     @   s   d dl Z d dlmZ e jdd d gdd dgfg ddg dfd dgddggd dd gd dggfd dgddggddd gd dggfgdd	 ZdS )
    N)	array_apizobj, axis, expected   )r   r   r   )r   r      c                 C   s8   t | }t j||ddd}t |t |ksJ dS )zy
    Indices respect relative order of a descending stable-sort

    See https://github.com/numpy/numpy/issues/20778
    T)axisstable
descendingN)xpasarrayargsortall)objr   expectedxout r   S/tmp/pip-target-vg8gfxp4/lib/python/numpy/array_api/tests/test_sorting_functions.pytest_stable_desc_argsort   s   
r   )pytestnumpyr   r	   markparametrizer   r   r   r   r   <module>   s      	