def test_best_prefix_negative_less_than_a_byte(self):
        # assert that a Byte of -4 bits yields Bit(-4)
        bm1 = bitmath.Byte(bits=-4)
        expected = bitmath.Bit(-4)
        res = bitmath.best_prefix(bm1)
        # Verify that best prefix math works for negative numbers
        self.assertEqual(res, expected)
        # Verify that best prefix guessed the correct type
        self.assertIs(type(res), bitmath.Bit)

    # For instances where x in set { b | b >= 8 } where b is number of
    # bits in an instance:
    #
    # * bitmath.best_prefix(-10**8) -> MiB(-95.367...)
    # * bitmath.best_prefix(10**8) -> MiB(95.367...)
nPr = n! / (n-r)!
dataset/ETHPy150Open tbielawa/bitmath/tests/test_best_prefix_BASE.py/TestBestPrefixBASE.test_best_prefix_negative_less_than_a_byte--crossover with--dataset/ETHPy150Open kdart/pycopia/core/pycopia/combinatorics.py/nPr