Differential D13997 Diff 33822 src/applications/differential/parser/__tests__/DifferentialCustomFieldRevertsParserTestCase.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/parser/__tests__/DifferentialCustomFieldRevertsParserTestCase.php
| Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | $map = array( | ||||
| 'prefix' => 'Backs out', | 'prefix' => 'Backs out', | ||||
| 'infix' => 'commit', | 'infix' => 'commit', | ||||
| 'monograms' => array('99', '100'), | 'monograms' => array('99', '100'), | ||||
| 'suffix' => '', | 'suffix' => '', | ||||
| 'offset' => 0, | 'offset' => 0, | ||||
| ), | ), | ||||
| ), | ), | ||||
| // This tests a degenerate regex behavior, see T9268. | |||||
| 'Reverts aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaz' => array(), | |||||
| "This doesn't revert anything" => array(), | "This doesn't revert anything" => array(), | ||||
| 'nonrevert of r11' => array(), | 'nonrevert of r11' => array(), | ||||
| 'fixed a bug' => array(), | 'fixed a bug' => array(), | ||||
| ); | ); | ||||
| foreach ($map as $input => $expect) { | foreach ($map as $input => $expect) { | ||||
| $parser = new DifferentialCustomFieldRevertsParser(); | $parser = new DifferentialCustomFieldRevertsParser(); | ||||
| $output = $parser->parseCorpus($input); | $output = $parser->parseCorpus($input); | ||||
| $this->assertEqual($expect, $output, $input); | $this->assertEqual($expect, $output, $input); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||