This is similar to the ancient Egyptians and the feather of Maat (truth). After death your heart is placed on a scale and the feather is placed on the other side of the scale. If your heart weighs more than the feather then your bad deeds outweighed your good.
I'll bet not many passed THAT test!