Checks if scalars and arrays are handled the same way. Tests only for float.
(norm_instance, vals)
| 811 | |
| 812 | |
| 813 | def _scalar_tester(norm_instance, vals): |
| 814 | """ |
| 815 | Checks if scalars and arrays are handled the same way. |
| 816 | Tests only for float. |
| 817 | """ |
| 818 | scalar_result = [norm_instance(float(v)) for v in vals] |
| 819 | assert_array_almost_equal(scalar_result, norm_instance(vals)) |
| 820 | |
| 821 | |
| 822 | def _mask_tester(norm_instance, vals): |
no outgoing calls
no test coverage detected
searching dependent graphs…