<s> import unittest <EOL> from cupy import testing <EOL> @ testing . gpu <EOL> class TestOps ( unittest . TestCase ) : <EOL> _multiprocess_can_split_ = True <EOL> @ testing . for_all_dtypes ( ) <EOL> @ testing . numpy_cupy_allclose ( atol = <NUM_LIT> ) <EOL> def check_unary ( self , name , xp , dtype ) : <EOL> a = testing . shaped_arange ( ( <NUM_LIT:2> , <NUM_LIT:3> ) , xp , dtype ) <EOL> return getattr ( xp , name ) ( a ) <EOL> @ testing . for_all_dtypes ( ) <EOL> @ testing . numpy_cupy_allclose ( atol = <NUM_LIT> ) <EOL> def check_binary ( self , name , xp , dtype ) : <EOL> a = testing . shaped_arange ( ( <NUM_LIT:2> , <NUM_LIT:3> ) , xp , dtype ) <EOL> b = testing . shaped_reverse_arange ( ( <NUM_LIT:2> , <NUM_LIT:3> ) , xp , dtype ) <EOL> return getattr ( xp , name ) ( a , b ) <EOL> def test_logical_and ( self ) : <EOL> self . check_binary ( '<STR_LIT>' ) <EOL> def test_logical_or ( self ) : <EOL> self . check_binary ( '<STR_LIT>' ) <EOL> def test_logical_xor ( self ) : <EOL> self . check_binary ( '<STR_LIT>' ) <EOL> def test_logical_not ( self ) : <EOL> self . check_unary ( '<STR_LIT>' ) </s>
