|
@@ -289,11 +289,13 @@ func (t *testSuite) TestSaveStudent() {
|
|
|
t.Equal(uint(1), student.(*Student).ClassID)
|
|
|
|
|
|
student.(*Student).ClassID = 2
|
|
|
+ student.(*Student).Handicap = true
|
|
|
_, err = SaveStudent(student)
|
|
|
t.Nil(err)
|
|
|
|
|
|
if !t.Failed() {
|
|
|
student, _ = GetStudent(map[string]string{"id": "1"})
|
|
|
- t.Equal(uint(2), student.(*Student).ClassID)
|
|
|
+ t.Equal(uint(1), student.(*Student).ClassID)
|
|
|
+ t.Equal(true, student.(*Student).Handicap)
|
|
|
}
|
|
|
}
|