From ccd9cde5d15da03136ad910bf9986d786e8ba050 Mon Sep 17 00:00:00 2001 From: plum-lihui <2849823933@qq.com> Date: Thu, 18 Jun 2020 17:22:43 +0800 Subject: [PATCH] Construct an empty result for later result checking --- tests/script/general/parser/null_char.sim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/script/general/parser/null_char.sim b/tests/script/general/parser/null_char.sim index bbb8dd4448..09e761c85e 100644 --- a/tests/script/general/parser/null_char.sim +++ b/tests/script/general/parser/null_char.sim @@ -212,12 +212,11 @@ if $data00 != shanghai then endi ##### test 'space' case -$tagvalue = '' -$tagvalue = $tagvalue ' +system_content echo ' ' | sed 's/ //g' | tr -d '\n' # Construct an empty result for later result checking sql alter table st41 set tag tag_binary = "" sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from st41 -if $data00 != @@ then - print expect , actual $data00 +if $data00 != $system_content then + print expect [ $system_content ], actual [ $data00 ] return -1 endi @@ -498,4 +497,4 @@ sql_error alter table st51 set tag tag_tinyint = abc379 #sql drop database $db -system sh/exec.sh -n dnode1 -s stop -x SIGINT \ No newline at end of file +system sh/exec.sh -n dnode1 -s stop -x SIGINT -- GitLab