Browse Source

修改测试用例

xormplus 10 years ago
parent
commit
cbbfb5fde8
2 changed files with 49 additions and 27 deletions
  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) {

File diff suppressed because it is too large
+ 42 - 27
test/测试结果.txt


Some files were not shown because too many files changed in this diff