public function testEmptyRange() { $this->assertFalse(RTEmptyRange($this->range)); $emptyRange = RTMakeRange(4, 0); $this->assertTrue(RTEmptyRange($emptyRange)); }
public function testRangeOfStringThatIsNotPresent() { $haystack = RTString::stringWithString("This is a test string"); $needle = RTString::stringWithString("qwerty"); $range = $haystack->rangeOfString($needle); $this->assertTrue(RTEmptyRange($range)); }