def testBLSortEmpty(self): self.assertEqual(hw.blsort([]), [])
def testBLSortTwoElementsBackward(self): self.assertEqual(hw.blsort([1, 0]), [0, 1])
def testBLSortOneOne(self): self.assertEqual(hw.blsort([1]), [1])
def testBLSortRandom(self): self.assertEqual(hw.blsort([0, 1, 1, 0, 1, 1]), [0, 0, 1, 1, 1, 1])
def testBLSortZerosSurroundedByOnes(self): self.assertEqual(hw.blsort([1] + [0] * 10 + [1]), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1])