• ###### user9644768created an issue for "Vector Affinity" kata

Please use new python test framework.

• ###### user9644768commented on "Vector Affinity" kata

No, because I've no idea what it is.

• ###### rowcasedcreated a suggestion for "Vector Affinity" kata

C translation available.

• ###### FArekkusucommented on "Vector Affinity" kata

Couldn't you use the new test framework for that?

• ###### keithhamiltoncommented on "Vector Affinity" kata

awesome! it's been so long since I wrote this I'd completely forgotten about it. thanks for adding Python (one of my favorites)!

• ###### FArekkusucreated an issue for "Vector Affinity" kata

No random tests.

• ###### keithhamiltoncommented on "Vector Affinity" kata

The expected result should be 0.2. The affinity, for this exercise, considers both values and their indices.

• ###### syeericcreated a question for "Vector Affinity" kata

One question. What is the expected result if we have two vectors : [3,2,1], [1,2,3,4,5] (first test case modified). What is the expected affinity? 0.2 or 0.6?

• ###### nmkncocommented on "Vector Affinity" kata

Ah I see. Thanks!

• ###### keithhamiltoncommented on "Vector Affinity" kata

yonax, you uncovered a nasty bug. I have fixed it and added the test cases discussed above to the kata.

• ###### keithhamiltoncommented on "Vector Affinity" kata

This was due to an issue in my logic for solving the problem. It has been corrected, and the kata has been republished.

To confirm,

``````vector_affinity([None], []) == 0.0 => True
``````