Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Dec 16, 2024
1 parent 70c80e9 commit 454d71c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions lib/typing/values/string_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,18 @@ func TestToString(t *testing.T) {
}
{
// Array
val, err := ToString([]string{"foo", "bar"}, typing.Array)
assert.NoError(t, err)
assert.Equal(t, `["foo","bar"]`, val)
{
// Normal arrays
val, err := ToString([]string{"foo", "bar"}, typing.Array)
assert.NoError(t, err)
assert.Equal(t, `["foo","bar"]`, val)
}
{
// Toasted array
val, err := ToString(constants.ToastUnavailableValuePlaceholder, typing.Array)
assert.NoError(t, err)
assert.Equal(t, `["__debezium_unavailable_value"]`, val)
}
}
{
// Integer column
Expand Down

0 comments on commit 454d71c

Please sign in to comment.