CuPy offers testing utilities to support unit testing.
They are under namespace
The assertions have same names as NumPy’s ones.
The difference from NumPy is that they can accept both
NumPy-CuPy Consistency Check¶
The following decorators are for testing consistency between CuPy’s functions and corresponding NumPy’s ones.
Parameterized dtype Test¶
The following decorators offers the standard way for parameterized test with respect to single or the combination of dtype(s).