'Check a few basic examples of the tie correction factor.'

def test_basic(self):

    ranks = np.array([1.0, 2.5, 2.5])
    c = tiecorrect(ranks)
    T = 2.0
    N = ranks.size
    expected = (1.0 - (((T ** 3) - T) / ((N ** 3) - N)))
    assert_equal(c, expected)
    ranks = np.array([1.5, 1.5, 3.0])
    c = tiecorrect(ranks)
    T = 2.0
    N = ranks.size
    expected = (1.0 - (((T ** 3) - T) / ((N ** 3) - N)))
    assert_equal(c, expected)
    ranks = np.array([1.0, 3.0, 3.0, 3.0])
    c = tiecorrect(ranks)
    T = 3.0
    N = ranks.size
    expected = (1.0 - (((T ** 3) - T) / ((N ** 3) - N)))
    assert_equal(c, expected)
    ranks = np.array([1.5, 1.5, 4.0, 4.0, 4.0])
    c = tiecorrect(ranks)
    T1 = 2.0
    T2 = 3.0
    N = ranks.size
    expected = (1.0 - ((((T1 ** 3) - T1) + ((T2 ** 3) - T2)) / ((N ** 3) - N)))
    assert_equal(c, expected)
