Skip to content

Commit d055091

Browse files
Add tests for Boolean datatype
1 parent c38a4b9 commit d055091

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/boolean_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ func TestBooleanDefaultValue(t *testing.T) {
207207
var got BooleanTest
208208
DB.First(&got, bt.ID)
209209

210-
// Expect default (false or NULL depending on DB)
211210
if got.Flag != false {
212211
t.Errorf("expected default false, got %v", got.Flag)
213212
}
@@ -230,7 +229,6 @@ func TestBooleanQueryMixedComparisons(t *testing.T) {
230229
t.Errorf("expected at least 1 row for FLAG=1")
231230
}
232231

233-
// FILTER USING TEXT (invalid in Oracle)
234232
var gotStr []BooleanTest
235233
if err := DB.Where("FLAG = 'true'").Find(&gotStr).Error; err == nil {
236234
t.Errorf("expected ORA-01722 when comparing NUMBER to string literal")

0 commit comments

Comments
 (0)