Complex sentence: A rule is a function returning a test result of success or failure.
Split into simpler sentences: A rule is a test function. A test is success or failure.