Changeset View
Changeset View
Standalone View
Standalone View
src/parser/__tests__/ArcanistDiffParserTestCase.php
Show First 20 Lines • Show All 543 Lines • ▼ Show 20 Lines | EOTEXT | ||||
$this->assertEqual(1, count($changes)); | $this->assertEqual(1, count($changes)); | ||||
break; | break; | ||||
case 'suppress-blank-empty.gitdiff': | case 'suppress-blank-empty.gitdiff': | ||||
$this->assertEqual(1, count($changes)); | $this->assertEqual(1, count($changes)); | ||||
break; | break; | ||||
case 'svn-property-windows.svndiff': | case 'svn-property-windows.svndiff': | ||||
$this->assertEqual(1, count($changes)); | $this->assertEqual(1, count($changes)); | ||||
break; | break; | ||||
case 'rcs-addline.rcsdiff': | |||||
$this->assertEqual(1, count($changes)); | |||||
$change = array_shift($changes); | |||||
$this->assertEqual( | |||||
ArcanistDiffChangeType::TYPE_CHANGE, | |||||
$change->getType()); | |||||
break; | |||||
case 'rcs-deleteline.rcsdiff': | |||||
epriestley: This should just be `.rcsdiff`, not `.rcs.diff`. | |||||
$this->assertEqual(1, count($changes)); | |||||
$change = array_shift($changes); | |||||
$this->assertEqual( | |||||
ArcanistDiffChangeType::TYPE_CHANGE, | |||||
$change->getType()); | |||||
break; | |||||
default: | default: | ||||
throw new Exception("No test block for diff file {$diff_file}."); | throw new Exception("No test block for diff file {$diff_file}."); | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
public function testGitPrefixStripping() { | public function testGitPrefixStripping() { | ||||
static $tests = array( | static $tests = array( | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |
This should just be .rcsdiff, not .rcs.diff.