comparison tests/automated/case-tests.el @ 4904:e91e3e353805

Don't compare the same octet with itself if checking for boyer_moore_ok src/ChangeLog addition: 2010-01-31 Aidan Kehoe <kehoea@parhasard.net> * search.c (search_buffer): When checking the octets of c for identity, don't compare the same octet with itself. Thank you Ben Wing! tests/ChangeLog addition: 2010-01-31 Aidan Kehoe <kehoea@parhasard.net> * automated/search-tests.el: Check that multidimensional characters with repeated octets and case information force simple_search(), since boyer_moore() doesn't understand them when constructing its stride table. In passing; correct my spelling. * automated/case-tests.el (uni-mappings): In passing; delete a couple of redundant tests, correct the logic of another.
author Aidan Kehoe <kehoea@parhasard.net>
date Sun, 31 Jan 2010 18:09:57 +0000
parents 91a023144e72
children 9e7f5a77cc84
comparison
equal deleted inserted replaced
4903:70089046adef 4904:e91e3e353805
1464 ) 1464 )
1465 (with-case-table uni-casetab 1465 (with-case-table uni-casetab
1466 (Assert-equalp lower upper) 1466 (Assert-equalp lower upper)
1467 (Assert-equalp lowerupper upperlower) 1467 (Assert-equalp lowerupper upperlower)
1468 (Assert-equal lower (downcase upper)) 1468 (Assert-equal lower (downcase upper))
1469 (Assert-equal upper (downcase lower)) 1469 (Assert-equal upper (upcase lower))
1470 (Assert-equal lower (downcase upper))
1471 (Assert-equal upper (downcase lower))
1472 (Assert-equal (downcase lower) (downcase (downcase lower))) 1470 (Assert-equal (downcase lower) (downcase (downcase lower)))
1473 (Assert-equal (upcase lowerupper) (upcase upperlower)) 1471 (Assert-equal (upcase lowerupper) (upcase upperlower))
1474 (Assert-equal (downcase lowerupper) (downcase upperlower)) 1472 (Assert-equal (downcase lowerupper) (downcase upperlower))
1475 (with-temp-buffer 1473 (with-temp-buffer
1476 (set-case-table uni-casetab) 1474 (set-case-table uni-casetab)