Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
search.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 May 2008 at 21:33 UTC
Updated:
29 Apr 2010 at 23:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
BlakeLucchesi commentedRerolled with notes as to which test case covers which part of search_simplify and adds CJK tests.
Comment #2
cfennell commentedReviewed, looks good to me.
Comment #3
dmitrig01 commentedThis won't work. array keys are unique.
Try reversing the array.
Comment #4
BlakeLucchesi commentedMust have been tired. Thanks. Rerolled.
Comment #5
douggreen commentedSo that we don't run into more cases in the future like dmitrig01 found, I'd switch the key and value in the array so that it's initial => expected.
Comment #6
dmitrig01 commentedAgreed.
Comment #7
David Lesieur commentedRe-rolled, switching array to initial => expected.
Comment #8
David Lesieur commentedComment #9
douggreen commentedBe careful when you apply this patch to make sure that you don't lose the multibyte characters. I first applied it by copying the patch from my web browser (which is what I always do), and it failed the three CJK tests. However after downloading the patch using wget, it applied and passed all tests.
I also reviewed the code, and think that it's mostly ready to go. I'm one of the worst when it comes to commenting, so I'm not exactly sure what our standard is. But if I would add anything, it's that your comments aren't fully sentences and probably should be. You might get asked to change comments like "String to lowercase." to full sentences such as "Test simplification of strings to lowercase characters."
Comment #10
douggreen commentedComment #11
catchThe patch applies fine and the tests run OK, but Doug's right on the comments, they need fleshing out to full sentences.
Comment #12
jhodgdonSetting to Needs Review so the test bot can test the last patch up there. See #11, status should actually be needs work.
Comment #13
jhodgdonComment #14
jhodgdonWe actually now have a comprehensive search_simplify() test case in modules/search/search.test.
#604002: Poor search support of some Unicode scripts