def testGetDigitsInOrderOf5BandResistor(self): self.assertEquals( 123, decodeSignificantFigures( ["brown", "red", "orange", "green", "violet"]))
def testGetDigitsWithLeadingBlackBand4Bands(self): self.assertEquals( 2, decodeSignificantFigures(["black", "red", "green", "violet"]))
def testGetDigitsWithBlackBand5Bands(self): self.assertEquals( 200, decodeSignificantFigures( ["red", "black", "black", "green", "violet"]))
def testGetDigitsInReverseOrderOf4BandResistor(self): self.assertEquals( 65, decodeSignificantFigures(["blue", "green", "green", "violet"]))