null+****@clear*****
null+****@clear*****
2012年 3月 9日 (金) 11:05:01 JST
Kouhei Sutou 2012-03-09 11:05:01 +0900 (Fri, 09 Mar 2012) New Revision: cc9867bf4c5f92a94af4d7d74d748448a5f003a0 Log: test gqtp: fix insert position... Modified files: test/unit/gqtp/test-restore.rb Modified: test/unit/gqtp/test-restore.rb (+11 -11) =================================================================== --- test/unit/gqtp/test-restore.rb 2012-03-09 11:03:06 +0900 (6508dfc) +++ test/unit/gqtp/test-restore.rb 2012-03-09 11:05:01 +0900 (b071261) @@ -176,6 +176,17 @@ table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer Tok table_create Entry TABLE_HASH_KEY ShortText column_create Entry body COLUMN_SCALAR ShortText column_create Terms entry_body COLUMN_INDEX Entry body +load --table Entry +[ +{"_key":"gcc","body":"#{body}"} +] +EOC + + assert_dump(<<-EOD, commands) +table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram +table_create Entry TABLE_HASH_KEY ShortText +column_create Entry body COLUMN_SCALAR ShortText +column_create Terms entry_body COLUMN_INDEX Entry body load --table Terms [ ["_key"], @@ -223,17 +234,6 @@ load --table Terms ] load --table Entry [ -{"_key":"gcc","body":"#{body}"} -] -EOC - - assert_dump(<<-EOD, commands) -table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram -table_create Entry TABLE_HASH_KEY ShortText -column_create Entry body COLUMN_SCALAR ShortText -column_create Terms entry_body COLUMN_INDEX Entry body -load --table Entry -[ ["_key","body"], ["gcc","#{body}"] ]