YUKI Hiroshi
null+****@clear*****
Fri Jan 31 16:42:33 JST 2014
YUKI Hiroshi 2014-01-31 16:42:33 +0900 (Fri, 31 Jan 2014) New Revision: 46ac3122256fc7da00b3ddbe4dee03079053fffc https://github.com/droonga/fluent-plugin-droonga/commit/46ac3122256fc7da00b3ddbe4dee03079053fffc Message: Remove duplicated test Modified files: test/unit/plugin/distributor/test_search_planner.rb Modified: test/unit/plugin/distributor/test_search_planner.rb (+0 -44) =================================================================== --- test/unit/plugin/distributor/test_search_planner.rb 2014-01-31 16:42:12 +0900 (4052684) +++ test/unit/plugin/distributor/test_search_planner.rb 2014-01-31 16:42:33 +0900 (2bddda8) @@ -715,50 +715,6 @@ class DistributedSearchPlannerTest < Test::Unit::TestCase class SingleQueryTest < self - def test_have_simple_sortBy - request = { - "type" => "search", - "dataset" => "Droonga", - "body" => { - "queries" => { - "have_records" => { - "source" => "User", - "sortBy" => ["name"], - "output" => { - "format" => "complex", - "elements" => ["records"], - "attributes" => ["_key", "name", "age"], - "offset" => 0, - "limit" => 1, - }, - }, - }, - }, - } - - expected_plan = [] - expected_plan << reducer(request, { - "records" => { - "type" => "sort", - "operators" => [ - { "column" => 1, "operator" => "<" }, - ], - "limit" => 1, - }, - }) - expected_plan << gatherer(request, :elements => { - "records" => records_mapper( - :offset => 0, - :limit => 1, - :format => "complex", - :attributes => ["_key", "name", "age"], - ), - }) - expected_plan << searcher(request, :output_offset => 0, - :output_limit => 1) - assert_equal(expected_plan, plan(request)) - end - def test_have_sortBy request = { "type" => "search", -------------- next part -------------- HTML����������������������������...Download