Kouhei Sutou
null+****@clear*****
Wed Jun 26 18:33:46 JST 2013
Kouhei Sutou 2013-06-26 18:33:46 +0900 (Wed, 26 Jun 2013) New Revision: eaf494dd94b9fb9b181be9bacc54e151bd5e2bea https://github.com/groonga/groonga/commit/eaf494dd94b9fb9b181be9bacc54e151bd5e2bea Message: html_untag: add a test for cast failure case Added files: test/command/suite/select/function/html_untag/cast_failure.expected test/command/suite/select/function/html_untag/cast_failure.test Added: test/command/suite/select/function/html_untag/cast_failure.expected (+39 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/function/html_untag/cast_failure.expected 2013-06-26 18:33:46 +0900 (091b18d) @@ -0,0 +1,39 @@ +table_create Keywords TABLE_PAT_KEY ShortText +[[0,0.0,0.0],true] +table_create Entries TABLE_NO_KEY +[[0,0.0,0.0],true] +column_create Entries keyword COLUMN_SCALAR Keywords +[[0,0.0,0.0],true] +load --table Entries +[ +{"keyword": "groonga-<em>mroonga</em>-developers"} +] +[[0,0.0,0.0],1] +select Entries --output_columns "html_untag(keyword)" --command_version 2 +[ + [ + [ + -22, + 0.0, + 0.0 + ], + "failed to cast to text: <#<record:pat:Keywords id:1 key:\"groonga-<em>mroonga</em>-developers\">>" + ], + [ + [ + [ + 1 + ], + [ + [ + "html_untag", + "null" + ] + ], + [ + "failed to cast to text: <#<record:pat:Keywords id:1 key:\"groonga-<em>mroonga</em>-developers\">>" + ] + ] + ] +] +#|e| failed to cast to text: <#<record:pat:Keywords id:1 key:"groonga-<em>mroonga</em>-developers">> Added: test/command/suite/select/function/html_untag/cast_failure.test (+13 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/function/html_untag/cast_failure.test 2013-06-26 18:33:46 +0900 (ff67d2e) @@ -0,0 +1,13 @@ +table_create Keywords TABLE_PAT_KEY ShortText + +table_create Entries TABLE_NO_KEY +column_create Entries keyword COLUMN_SCALAR Keywords + +load --table Entries +[ +{"keyword": "groonga-<em>mroonga</em>-developers"} +] + +select Entries \ + --output_columns "html_untag(keyword)" \ + --command_version 2 -------------- next part -------------- HTML����������������������������...Download