Exemplo n.º 1
0
def test_partition_asymmetry():
    partition = list(_nf.partition_asymmetries(SIMPLE))
    assert_allclose(partition, (0.0, 0.0))

    partition = list(_nf.partition_asymmetries(SIMPLE, variant='length'))
    assert_allclose(partition, (0.0625, 0.06666666666666667))

    nt.assert_raises(ValueError,
                     _nf.partition_asymmetries,
                     SIMPLE,
                     variant='unvalid-variant')
Exemplo n.º 2
0
def test_partition_asymmetry():
    partition = list(_nf.partition_asymmetries(SIMPLE))
    assert_allclose(partition, (0.0, 0.0))
Exemplo n.º 3
0
def test_partition_asymmetry():
    partition = list(_nf.partition_asymmetries(SIMPLE))
    assert_allclose(partition,
                    (0.0, 0.0))