
    e                         d Z ddlmZ ddlZddlZej                            d ej        d           ej        d          z   d            e	            fd	            Z
dS )
z,Check that functions can handle scalar input    )assert_array_almost_equalNfuncreducenonreduce_axisc                     | j         S )N)__name__)xs    Blib/python3.11/site-packages/bottleneck/tests/scalar_input_test.py<lambda>r      s    !*     )idsc                     | j         dv rdS t          d| j         z            }d}d}|gt          |          z   } | | } || }|| j         |fz  }t          |||           dS )zGTest that bn.xxx gives the same output as bn.slow.xxx for scalar input.)	partitionargpartitionpushNz
bn.slow.%sz
func %s | input %s
i)err_msg)r   evallistr   )	r   argsfunc0msgaargsiactualdesiredr   s	            r
   test_scalar_inputr      s     }===-..E
"C
AC$t**ET5\FeUmGT]A&&Gfgw??????r   )__doc__numpy.testingr   
bottleneckbnpytestmarkparametrizeget_functionstupler    r   r
   <module>r'      s    2 2 3 3 3 3 3 3      
BX!1!12B!C!CC   
 "' @ @ @ 
@ @ @r   