Skip to content

Commit

Permalink
Replace assert.True and assert.False with assert.Equal
Browse files Browse the repository at this point in the history
Signed-off-by: Noble Mittal <[email protected]>
  • Loading branch information
beingnoble03 committed Mar 19, 2024
1 parent 56b9c84 commit 99a9a32
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions go/mysql/datetime/interval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,6 @@ func TestInRange(t *testing.T) {
for _, tc := range testCases {
got := tc.in.inRange()

if tc.wantInRange {
assert.True(t, got, "Interval %v should be within valid range", tc.in)
} else {
assert.False(t, got, "Interval %v should be out of valid range", tc.in)
}
assert.Equal(t, tc.wantInRange, got)
}
}

0 comments on commit 99a9a32

Please sign in to comment.