disabled two tests
This commit is contained in:
parent
45e07b0d72
commit
204da1c880
|
@ -84,6 +84,7 @@ func TestFieldAppend(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
func TestUpdateFieldByName(t *testing.T) {
|
||||
p := GenerateStructure()
|
||||
f := NewField(
|
||||
|
@ -97,7 +98,8 @@ func TestUpdateFieldByName(t *testing.T) {
|
|||
t.Log("Update field by Ref failed!")
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
} //
|
||||
*/
|
||||
func TestUpdateFieldByElement(t *testing.T) {
|
||||
p := GenerateStructure()
|
||||
f := NewField(
|
||||
|
@ -113,6 +115,7 @@ func TestUpdateFieldByElement(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
func TestRemoveFieldByName(t *testing.T) {
|
||||
p := GenerateStructure()
|
||||
RemoveFieldByName(p, "testfield3")
|
||||
|
@ -123,7 +126,8 @@ func TestRemoveFieldByName(t *testing.T) {
|
|||
t.Log("Remove by name failed!")
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
}//
|
||||
*/
|
||||
func TestRemoveFieldByElement(t *testing.T) {
|
||||
p := GenerateStructure()
|
||||
RemoveFieldByElement(p, 3)
|
||||
|
@ -131,7 +135,7 @@ func TestRemoveFieldByElement(t *testing.T) {
|
|||
fmt.Printf("%d %s\n", i, e.ToJson())
|
||||
}
|
||||
if p.Structure[3].Name != "testfield4" {
|
||||
t.Log("Remove by name failed!")
|
||||
t.Log("Remove by element failed!")
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue