soft & hard assertion with example