Kouhei Sutou
null+****@clear*****
Wed Oct 25 14:59:57 JST 2017
Kouhei Sutou 2017-10-25 14:59:57 +0900 (Wed, 25 Oct 2017) New Revision: 57a5ce61796dc0069ed26bb2f8b1cda3af4e547a https://github.com/ranguba/groonga-client/commit/57a5ce61796dc0069ed26bb2f8b1cda3af4e547a Message: test: format Modified files: test/response/test-column-list.rb Modified: test/response/test-column-list.rb (+40 -3) =================================================================== --- test/response/test-column-list.rb 2017-10-24 17:27:10 +0900 (77d2094) +++ test/response/test-column-list.rb 2017-10-25 14:59:57 +0900 (d1a9d07) @@ -1,12 +1,49 @@ +# Copyright (C) 2013 Kosuke Asami +# Copyright (C) 2017 Kouhei Sutou <kou �� clear-code.com> +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + require "response/helper" class TestResponseColumnList < Test::Unit::TestCase include TestResponseHelper def test_column_list - header = [0,1372430096.70991,0.000522851943969727] - body = [[["id","UInt32"],["name","ShortText"],["path","ShortText"],["type","ShortText"],["flags","ShortText"],["domain","ShortText"],["range","ShortText"],["source","ShortText"]], - [256,"Text","/tmp/test.db.0000100","var","COLUMN_SCALAR|PERSISTENT","TestTable","ShortText",[]]] + header = [0, 1372430096.70991, 0.000522851943969727] + body = [ + [ + ["id", "UInt32"], + ["name", "ShortText"], + ["path", "ShortText"], + ["type", "ShortText"], + ["flags", "ShortText"], + ["domain", "ShortText"], + ["range", "ShortText"], + ["source", "ShortText"], + ], + [ + 256, + "Text", + "/tmp/test.db.0000100", + "var", + "COLUMN_SCALAR|PERSISTENT", + "TestTable", + "ShortText", + [], + ], + ] raw_response = [header, body].to_json response = parse_raw_response("column_list", raw_response) -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171025/67c3c341/attachment-0001.htm