Kouhei Sutou
null+****@clear*****
Thu Nov 20 16:34:15 JST 2014
Kouhei Sutou 2014-11-20 16:34:15 +0900 (Thu, 20 Nov 2014) New Revision: d6829ff0ff72aecd18831db3c697086d5f15cbbe https://github.com/ranguba/groonga-client/commit/d6829ff0ff72aecd18831db3c697086d5f15cbbe Message: test: indent for readability Modified files: test/response/test-table-list.rb Modified: test/response/test-table-list.rb (+28 -3) =================================================================== --- test/response/test-table-list.rb 2014-11-05 15:32:44 +0900 (3e1a915) +++ test/response/test-table-list.rb 2014-11-20 16:34:15 +0900 (19c75b0) @@ -4,9 +4,34 @@ class TestResponseTableList < Test::Unit::TestCase include TestResponseHelper def test_table_list - header = [0,1372430096.70991,0.000522851943969727] - body = [[["id","UInt32"],["name","ShortText"],["path","ShortText"],["flags","ShortText"],["domain","ShortText"],["range","ShortText"],["default_tokenizer","ShortText"],["normalizer","ShortText"]], - [256,"Test","/tmp/test.db.0000100","TABLE_HASH_KEY|PERSISTENT",nil,nil,nil,nil]] + header = [ + 0, + 1372430096.70991, + 0.000522851943969727, + ] + columns = [ + ["id", "UInt32"], + ["name", "ShortText"], + ["path", "ShortText"], + ["flags", "ShortText"], + ["domain", "ShortText"], + ["range", "ShortText"], + ["default_tokenizer", "ShortText"], + ["normalizer", "ShortText"], + ] + body = [ + columns, + [ + 256, + "Test", + "/tmp/test.db.0000100", + "TABLE_HASH_KEY|PERSISTENT", + nil, + nil, + nil, + nil, + ], + ] raw_response = [header, body].to_json response = parse_raw_response("table_list", raw_response) -------------- next part -------------- HTML����������������������������... 下载