()
| 105 | |
| 106 | |
| 107 | def test_bitwise_shift_error(): |
| 108 | # bitwise shift functions should raise when the second argument is negative |
| 109 | assert_raises( |
| 110 | ValueError, lambda: bitwise_left_shift(asarray([1, 1]), asarray([1, -1])) |
| 111 | ) |
| 112 | assert_raises( |
| 113 | ValueError, lambda: bitwise_right_shift(asarray([1, 1]), asarray([1, -1])) |
| 114 | ) |
nothing calls this directly
no test coverage detected