Masafumi Yokoyama
null+****@clear*****
Mon Sep 29 23:57:20 JST 2014
Masafumi Yokoyama 2014-09-29 23:57:20 +0900 (Mon, 29 Sep 2014) New Revision: d13e5252f17984491e62c67477817a742d5d410f https://github.com/ranguba/rroonga/commit/d13e5252f17984491e62c67477817a742d5d410f Message: test: follow Groonga's change Because Groonga 4.0.6 has been fixed a bug that similar search doesn't use IDF (Inverse Document Frequency) for choosing target tokens. In the previous versions, it used token ID instead of IDF. [groonga-dev,02731] [groonga-dev,02754] NOTE: * Should we fix data instead of assertions? * Should we support the previous versions for the tests? Modified files: test/test-expression-builder.rb Modified: test/test-expression-builder.rb (+3 -2) =================================================================== --- test/test-expression-builder.rb 2014-09-29 23:41:38 +0900 (4f906ba) +++ test/test-expression-builder.rb 2014-09-29 23:57:20 +0900 (4294627) @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # +# Copyright (C) 2014 Masafumi Yokoyama <myokoym �� gmail.com> # Copyright (C) 2009-2012 Kouhei Sutou <kou �� clear-code.com> # # This library is free software; you can redistribute it and/or @@ -386,7 +387,7 @@ EOC result =****@docum***** do |record| record.content.similar_search("fast full text search real time") end - assert_equal(["Groonga overview", "Column store and aggregate query"].sort, + assert_equal(["Groonga overview"], result.collect {|record| record.key.key}.sort) end @@ -394,7 +395,7 @@ EOC result =****@docum*****("content").select do |content| content.similar_search("fast full text search real time") end - assert_equal(["Groonga overview", "Column store and aggregate query"].sort, + assert_equal(["Groonga overview"], result.collect {|record| record.key.key}.sort) end end -------------- next part -------------- HTML����������������������������... Download