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