From 5c055cbfcbb0cbe79f047acfad2478767bf59a89 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 16 Sep 2020 00:04:38 +0800 Subject: [PATCH] [td-1456] update test --- tests/script/general/parser/lastrow_query.sim | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/tests/script/general/parser/lastrow_query.sim b/tests/script/general/parser/lastrow_query.sim index 1308ac119f..fd2ca3cb8f 100644 --- a/tests/script/general/parser/lastrow_query.sim +++ b/tests/script/general/parser/lastrow_query.sim @@ -186,15 +186,17 @@ if $rows != 1 then return -1 endi -if $data02 != 'abc' then +if $data01 != @abc@ then + print expect abc, actual $data02 return -1 endi -if $data03 != 1234.938400000 then +if $data02 != 1234.938400000 then return -1 endi -if $data04 != @2019-01-01 01:01:01.000@ then +if $data03 != @19-01-01 01:01:01.000@ then + print expect 19-01-01 01:01:01.000, actual:$data03 return -1 endi @@ -203,3 +205,16 @@ sql select last_row(*), ts, 'abc', 123.981, tbname from m1 if $rows != 1 then return -1 endi + +if $data02 != @19-01-01 01:01:01.000@ then + return -1 +endi + +if $data03 != @abc@ then + return -1 +endi + +if $data04 != 123.981000000 then + print expect 123.981000000, actual: $data04 + return -1 +endi \ No newline at end of file -- GitLab