提交 1ec384f3 编写于 作者: W wpan

fix test code issue

上级 f043e3a6
...@@ -359,7 +359,7 @@ void verify_prepare(TAOS* taos) { ...@@ -359,7 +359,7 @@ void verify_prepare(TAOS* taos) {
v.v8 = (int64_t)(i * 8); v.v8 = (int64_t)(i * 8);
v.f4 = (float)(i * 40); v.f4 = (float)(i * 40);
v.f8 = (double)(i * 80); v.f8 = (double)(i * 80);
for (int j = 0; j < sizeof(v.bin) - 1; ++j) { for (int j = 0; j < sizeof(v.bin); ++j) {
v.bin[j] = (char)(i + '0'); v.bin[j] = (char)(i + '0');
} }
...@@ -556,7 +556,7 @@ void verify_prepare2(TAOS* taos) { ...@@ -556,7 +556,7 @@ void verify_prepare2(TAOS* taos) {
v.v8[i] = (int64_t)(i * 8); v.v8[i] = (int64_t)(i * 8);
v.f4[i] = (float)(i * 40); v.f4[i] = (float)(i * 40);
v.f8[i] = (double)(i * 80); v.f8[i] = (double)(i * 80);
for (int j = 0; j < sizeof(v.bin[0]) - 1; ++j) { for (int j = 0; j < sizeof(v.bin[0]); ++j) {
v.bin[i][j] = (char)(i + '0'); v.bin[i][j] = (char)(i + '0');
} }
strcpy(v.blob[i], "一二三四五六七八九十"); strcpy(v.blob[i], "一二三四五六七八九十");
...@@ -808,7 +808,7 @@ void verify_prepare3(TAOS* taos) { ...@@ -808,7 +808,7 @@ void verify_prepare3(TAOS* taos) {
v.v8[i] = (int64_t)(i * 8); v.v8[i] = (int64_t)(i * 8);
v.f4[i] = (float)(i * 40); v.f4[i] = (float)(i * 40);
v.f8[i] = (double)(i * 80); v.f8[i] = (double)(i * 80);
for (int j = 0; j < sizeof(v.bin[0]) - 1; ++j) { for (int j = 0; j < sizeof(v.bin[0]); ++j) {
v.bin[i][j] = (char)(i + '0'); v.bin[i][j] = (char)(i + '0');
} }
strcpy(v.blob[i], "一二三四五六七八九十"); strcpy(v.blob[i], "一二三四五六七八九十");
...@@ -1049,14 +1049,12 @@ int main(int argc, char *argv[]) { ...@@ -1049,14 +1049,12 @@ int main(int argc, char *argv[]) {
printf("************ verify prepare2 *************\n"); printf("************ verify prepare2 *************\n");
verify_prepare2(taos); verify_prepare2(taos);
printf("************ verify prepare3 *************\n"); printf("************ verify prepare3 *************\n");
verify_prepare3(taos); verify_prepare3(taos);
printf("************ verify stream *************\n"); printf("************ verify stream *************\n");
verify_stream(taos); verify_stream(taos);
printf("done\n"); printf("done\n");
taos_close(taos); taos_close(taos);
taos_cleanup(); taos_cleanup();
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册