Add entity test, to show text goes through literally

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@566294 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2007-08-15 18:32:22 +00:00
parent 7482909fcd
commit 6a3597cdb7
1 changed files with 7 additions and 0 deletions

View File

@ -199,6 +199,13 @@ class ServerTest < Test::Unit::TestCase
response = @connection.send(request)
assert_equal ["Apache >>Solr<<"], response.highlighted(1, :title_text)
end
def test_entities
@connection.add(:id => 1, :title_text => "&nbsp;")
response = @connection.query('nbsp')
assert_equal 1, response.total_hits
assert_equal '1', response.hits[0]['id']
end
# wipe the index clean
def clean