浏览代码

修改测试用例

xormplus 10 年之前
父节点
当前提交
cbbfb5fde8
共有 2 个文件被更改,包括 49 次插入27 次删除
  1. 7 0
      test/xorm_test.go
  2. 42 27
      test/测试结果.txt

+ 7 - 0
test/xorm_test.go

@@ -4,6 +4,7 @@ import (
 	"fmt"
 	"testing"
 	"time"
+"reflect"
 
 	"github.com/xormplus/xorm"
 
@@ -102,7 +103,13 @@ func Test_FindAll_ID(t *testing.T) {
 	if rows.Error != nil {
 		t.Fatal(rows.Error)
 	}
+	
 	t.Log("[Test_FindAll_Json]->rows[0][\"id\"]:\n", rows.Result[0]["id"])
+	t.Log("[Test_FindAll_Json]->reflect.TypeOf(rows.Result[0][\"id\"]):\n", reflect.TypeOf(rows.Result[0]["id"]))
+	t.Log("[Test_FindAll_Json]->rows[0][\"title\"]:\n", rows.Result[0]["title"])
+	t.Log("[Test_FindAll_Json]->reflect.TypeOf(rows.Result[0][\"title\"]):\n", reflect.TypeOf(rows.Result[0]["title"]))
+	t.Log("[Test_FindAll_Json]->rows[0][\"createdatetime\"]:\n", rows.Result[0]["createdatetime"])
+	t.Log("[Test_FindAll_Json]->reflect.TypeOf(rows.Result[0][\"createdatetime\"]):\n", reflect.TypeOf(rows.Result[0]["createdatetime"]))
 }
 
 func Test_FindAll_Xml(t *testing.T) {

文件差异内容过多而无法显示
+ 42 - 27
test/测试结果.txt


部分文件因为文件数量过多而无法显示