Changeset View
Changeset View
Standalone View
Standalone View
src/difference/__tests__/ArcanistDiffUtilsTestCase.php
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | $tests = array( | ||||
array( | array( | ||||
'abcdefghi', | 'abcdefghi', | ||||
'xyzabcdefghi', | 'xyzabcdefghi', | ||||
'iiisssssssss', | 'iiisssssssss', | ||||
), | ), | ||||
array( | array( | ||||
'abcdefg', | 'abcdefg', | ||||
'abxdxfg', | 'abxdxfg', | ||||
'ssxsxss', | 'ssxxxss', | ||||
), | ), | ||||
array( | array( | ||||
'private function a($a, $b) {', | 'private function a($a, $b) {', | ||||
'public function and($b, $c) {', | 'public function and($b, $c) {', | ||||
'siixsdddxsssssssssssiissxsssxsss', | 'siixxdddxsssssssssssiixxxxxxxsss', | ||||
), | ), | ||||
array( | array( | ||||
// This is a test that we correctly detect shared prefixes and suffixes | // This is a test that we correctly detect shared prefixes and suffixes | ||||
// and don't trigger "give up, too long" mode if there's a small text | // and don't trigger "give up, too long" mode if there's a small text | ||||
// change in an ocean of similar text. | // change in an ocean of similar text. | ||||
' if ('. | ' if ('. | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |