

def test_mag_intersect(self):
    'mag_intersect() test using known inputs'
    A = {
        'a': 1,
        'b': 2,
        'c': 5,
    }
    B = {
        'a': 1,
        'c': 2,
        'd': 3,
    }
    self.assertEqual(term_vec.mag_intersect(A, B), 3)

dataset/ETHPy150Open taherh/pysimsearch/pysimsearch/test/term_vec_test.py TermVecTest.test_mag_intersect/original