(I)
| 109 | |
| 110 | @pytest.mark.parametrize("I", test_data) |
| 111 | def test_cac(I): |
| 112 | L = 5 |
| 113 | excl_factor = 1 |
| 114 | custom_iac = _iac(I.shape[0]) |
| 115 | ref = naive_cac(I, L, excl_factor, custom_iac) |
| 116 | bidirectional = True |
| 117 | comp = _cac(I, L, bidirectional, excl_factor) |
| 118 | npt.assert_almost_equal(ref, comp) |
| 119 | |
| 120 | |
| 121 | @pytest.mark.parametrize("I", test_data) |