Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ func TestVerifyData(t *testing.T) {
"numeric": {"0", "123.456", "-123.456"},
"decimal": {"0", "123.456", "-123.456"},

"text": {`'foo'`, `'bar'`, `''`, `'something that is much longer but without much other complication'`},
"text": {`'foo'`, `'bar'`, `''`, `'something that is much longer but without much other complication'`, `'contains \b backspace character'`},
"uuid": {fmt.Sprintf("'%s'", uuid.New().String())},
`character varying(64)`: {`'more string stuff'`},
`character varying(64)`: {`'more string stuff'`, `'string with \b backspace character'`},

"jsonb": {`'{}'`, `'{"foo": ["bar", "baz"]}'`, `'{"foo": "bar"}'`, `'{"foo": "bar", "baz": "qux"}'`, `'{"for sure?": true, "has numbers": 123.456, "this is": ["some", "json", "blob"]}'`},
"json": {`'{}'`, `'{"foo": ["bar", "baz"]}'`, `'{"foo": "bar"}'`, `'{"foo": "bar", "baz": "qux"}'`, `'{"for sure?": true, "has numbers": 123.456, "this is": ["some", "json", "blob"]}'`},
"jsonb": {`'{}'`, `'{"foo": ["bar", "baz"]}'`, `'{"foo": "bar with \b backspace"}'`, `'{"foo": "bar", "baz": "qux"}'`, `'{"for sure?": true, "has numbers": 123.456, "this is": ["some", "json", "blob"]}'`},
"json": {`'{}'`, `'{"foo": ["bar", "baz"]}'`, `'{"foo": "bar with \b backspace"}'`, `'{"foo": "bar", "baz": "qux"}'`, `'{"for sure?": true, "has numbers": 123.456, "this is": ["some", "json", "blob"]}'`},

"date": {`'2020-12-31'`},
"timestamp with time zone": {`'2020-12-31 23:59:59 -8:00'`, `'2022-06-08 20:03:06.957223+00'`}, // hashes differently for psql/crdb, convert to epoch when hashing
Expand Down