()
| 81 | |
| 82 | |
| 83 | def test_same_input_shapes(): |
| 84 | # Check that the final shape is just the input shape. |
| 85 | |
| 86 | data = [ |
| 87 | (), |
| 88 | (1,), |
| 89 | (3,), |
| 90 | (0, 1), |
| 91 | (0, 3), |
| 92 | (1, 0), |
| 93 | (3, 0), |
| 94 | (1, 3), |
| 95 | (3, 1), |
| 96 | (3, 3), |
| 97 | ] |
| 98 | for shape in data: |
| 99 | input_shapes = [shape] |
| 100 | # Single input. |
| 101 | assert_shapes_correct(input_shapes, shape) |
| 102 | # Double input. |
| 103 | input_shapes2 = [shape, shape] |
| 104 | assert_shapes_correct(input_shapes2, shape) |
| 105 | # Triple input. |
| 106 | input_shapes3 = [shape, shape, shape] |
| 107 | assert_shapes_correct(input_shapes3, shape) |
| 108 | |
| 109 | |
| 110 | def test_two_compatible_by_ones_input_shapes(): |
nothing calls this directly
no test coverage detected