Use assert to automate testing.