Skip to content

Commit

Permalink
Adding another test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 26, 2024
1 parent e1265d2 commit b4dff6d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion clients/redshift/cast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ import (
func (r *RedshiftTestSuite) TestReplaceExceededValues() {
{
// Irrelevant data type
assert.Equal(r.T(), "123", replaceExceededValues("123", typing.Integer, false))
{
// Integer
assert.Equal(r.T(), "123", replaceExceededValues("123", typing.Integer, false))
}
{
// Returns the full value since it's not a struct or string
value := stringutil.Random(int(maxRedshiftLength + 1))
assert.Equal(r.T(), value, replaceExceededValues(value, typing.Integer, false))
}
}
{
// Exceeded
Expand Down

0 comments on commit b4dff6d

Please sign in to comment.