public function testRangeInRange() { $lhsRange = RTMakeRange(0, 0); $rhsRange = $this->range; $this->assertFalse(RTRangeInRange($lhsRange, $rhsRange)); $lhsRange = RTCopyRange($rhsRange); $this->assertTrue(RTRangeInRange($lhsRange, $rhsRange)); $rhsRange->location--; $rhsRange->length++; $this->assertFalse(RTRangeInRange($lhsRange, $rhsRange)); }
function RTMakeRangeCopy(RTRange $aRange) { return RTCopyRange($aRange); }