fix tests due to change in symbols to strings in hash

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@499443 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2007-01-24 15:28:17 +00:00
parent 29935fe9a7
commit bbf2ddef81
1 changed files with 11 additions and 11 deletions

View File

@ -44,7 +44,7 @@ class StandardRequestTest < Test::Unit::TestCase
assert_equal 50, request.to_hash[:rows]
assert_equal ['fq1','fq2'], request.to_hash[:fq]
assert_equal "id,title,score", request.to_hash[:fl]
assert_equal "AND", request.to_hash[:"q.op"]
assert_equal "AND", request.to_hash["q.op"]
end
def test_missing_params
@ -69,16 +69,16 @@ class StandardRequestTest < Test::Unit::TestCase
hash = request.to_hash
assert_equal true, hash[:facet]
assert_equal [:genre, :year], hash[:"facet.field"]
assert_equal ["q1", "q2"], hash[:"facet.query"]
assert_equal 5, hash[:"facet.limit"]
assert_equal 20, hash[:"facet.mincount"]
assert_equal true, hash[:"facet.sort"]
assert_equal "cat", hash[:"facet.prefix"]
assert_equal 50, hash[:"f.year.facet.limit"]
assert_equal 0, hash[:"f.year.facet.mincount"]
assert_equal false, hash[:"f.year.facet.sort"]
assert_equal "199", hash[:"f.year.facet.prefix"]
assert_equal [:genre, :year], hash["facet.field"]
assert_equal ["q1", "q2"], hash["facet.query"]
assert_equal 5, hash["facet.limit"]
assert_equal 20, hash["facet.mincount"]
assert_equal true, hash["facet.sort"]
assert_equal "cat", hash["facet.prefix"]
assert_equal 50, hash["f.year.facet.limit"]
assert_equal 0, hash["f.year.facet.mincount"]
assert_equal false, hash["f.year.facet.sort"]
assert_equal "199", hash["f.year.facet.prefix"]
end
def test_basic_sort