From b4dff6d09108f52f30cff123dcc35683ee905c54 Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Wed, 25 Sep 2024 17:02:58 -0700 Subject: [PATCH] Adding another test. --- clients/redshift/cast_test.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/clients/redshift/cast_test.go b/clients/redshift/cast_test.go index 6f4f247c7..f9b1b32c3 100644 --- a/clients/redshift/cast_test.go +++ b/clients/redshift/cast_test.go @@ -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