This commit is contained in:
biju-kalissery 2015-09-08 14:15:23 -04:00
parent 7ae3729033
commit a513a468b4

View File

@ -20,13 +20,13 @@ func TestScannableSlices(t *testing.T) {
}
if err := DB.Save(&r1).Error; err != nil {
t.Errorf("Should save record with slice values")
t.Errorf("Should save record with slice values:%v", err)
}
var r2 RecordWithSlice
if err := DB.Find(&r2).Error; err != nil {
t.Errorf("Should fetch record with slice values")
t.Errorf("Should fetch record with slice values:%v", err)
}
if len(r2.Strings) != 3 || r2.Strings[0] != "a" || r2.Strings[1] != "b" || r2.Strings[2] != "c" {