Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Jul 2, 2024
1 parent 703ee4d commit c58f00d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/mysql/schema/convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,10 @@ func TestConvertValues(t *testing.T) {
}

func TestHasNonStrictModeDate(t *testing.T) {
assert.False(t, hasNonStrictModeDate(""))
assert.False(t, hasNonStrictModeDate("hello world"))
assert.False(t, hasNonStrictModeDate("2021-01-02"))
assert.False(t, hasNonStrictModeDate("2021--01-02"))
assert.False(t, hasNonStrictModeDate("2021-01-02 03:04:05"))

assert.True(t, hasNonStrictModeDate("2009-00-00"))
Expand Down

0 comments on commit c58f00d

Please sign in to comment.