renamed function check() to passed()

The name "passed" makes more sense in the context of an interval. The old
function check() is left in for compatibility purposes.