This polarity test or indicator indicates the polarity of a power line by LEDs. The circuit is suggested by the Texas Instruments optoelectronics manual. The transistors can be BC548 and BC558.