Explorar o código

修改测试用例

xormplus %!s(int64=10) %!d(string=hai) anos
pai
achega
cbbfb5fde8
Modificáronse 2 ficheiros con 49 adicións e 27 borrados
  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) {

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 42 - 27
test/测试结果.txt


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio