test/test_search.rb in code_zauker-0.0.8 vs test/test_search.rb in code_zauker-0.0.9
- old
+ new
@@ -104,10 +104,10 @@
def test_case_insensitive2
fs=CodeZauker::FileScanner.new()
fs.load("./test/fixture/kurukku.txt", noReload=true)
flist=fs.isearch("caSeinsenSitive Search TEST.")
assert flist.include?("./test/fixture/kurukku.txt"), "Case insensitive search failed. #{flist}"
- assert fs.search("caSeinsenSitive").length==0, "Case Sensitive Search failed"
+ assert fs.search("CASeinsenSitivE").include?("./test/fixture/kurukku.txt"), "Search must be always insensitive"
end
def test_case_insensitive3
fs=CodeZauker::FileScanner.new()
fs.load("./test/fixture/kurukku.txt", noReload=true)