From 5abee12eff470339ecc0f4b5807e89d52daf5a40 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sun, 24 Apr 2022 20:49:55 +0800 Subject: [PATCH] test: update some tsim test cases. --- tests/script/tsim/parser/groupby-basic.sim | 18 +++++++++--------- tests/script/tsim/stable/disk.sim | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/tests/script/tsim/parser/groupby-basic.sim b/tests/script/tsim/parser/groupby-basic.sim index f073200a05..4d6b33612f 100644 --- a/tests/script/tsim/parser/groupby-basic.sim +++ b/tests/script/tsim/parser/groupby-basic.sim @@ -115,19 +115,19 @@ endi if $data00 != 10 then return -1 endi -if $data01 != 0 then +if $data10 != 10 then return -1 endi -if $data10 != 10 then +if $data90 != 10 then return -1 endi -if $data11 != 1 then +if $data01 != 7 then return -1 endi -if $data90 != 10 then +if $data11 != 6 then return -1 endi -if $data91 != 9 then +if $data91 != 3 then return -1 endi @@ -143,16 +143,16 @@ if $row != 10 then return -1 endi -if $data00 != @22-01-01 00:00:00.000@ then +if $data00 != @22-01-01 00:00:00.007@ then return -1 endi -if $data01 != 0 then +if $data01 != 7 then return -1 endi -if $data90 != @22-01-01 00:00:00.009@ then +if $data90 != @22-01-01 00:00:00.003@ then return -1 endi -if $data91 != 9 then +if $data91 != 3 then return -1 endi diff --git a/tests/script/tsim/stable/disk.sim b/tests/script/tsim/stable/disk.sim index 97ef779ff2..c1ced6ae10 100644 --- a/tests/script/tsim/stable/disk.sim +++ b/tests/script/tsim/stable/disk.sim @@ -53,6 +53,7 @@ endi sql select count(tbcol) from $mt print select count(tbcol) from $mt ===> $data00 if $data00 != $totalNum then + print expect $totalNum , actual: $data00 return -1 endi -- GitLab