You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2007/01/24 16:28:17 UTC
svn commit: r499443 -
/lucene/solr/trunk/client/ruby/solrb/test/unit/standard_request_test.rb
Author: ehatcher
Date: Wed Jan 24 07:28:17 2007
New Revision: 499443
URL: http://svn.apache.org/viewvc?view=rev&rev=499443
Log:
fix tests due to change in symbols to strings in hash
Modified:
lucene/solr/trunk/client/ruby/solrb/test/unit/standard_request_test.rb
Modified: lucene/solr/trunk/client/ruby/solrb/test/unit/standard_request_test.rb
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solrb/test/unit/standard_request_test.rb?view=diff&rev=499443&r1=499442&r2=499443
==============================================================================
--- lucene/solr/trunk/client/ruby/solrb/test/unit/standard_request_test.rb (original)
+++ lucene/solr/trunk/client/ruby/solrb/test/unit/standard_request_test.rb Wed Jan 24 07:28:17 2007
@@ -44,7 +44,7 @@
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 @@
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