-
Notifications
You must be signed in to change notification settings - Fork 877
Modernize array tests and other test cleanup #5279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
NinoFloris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM beyond my feedback
| } | ||
|
|
||
| [Test, Description("Roundtrips an empty multi-dimensional array.")] | ||
| public async Task Empty_multidimensional_array() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add this and the zero dimension case to the test cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one has been replaced by Write_empty_multidimensional_array, since PG normalizes empty multidimensional arrays to single-dimensional (so we can't use the generic test above with the test cases).
As for the zero dimension case, isn't it the one that's already there (test case Empty_array)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one has been replaced by Write_empty_multidimensional_array, since PG normalizes empty multidimensional arrays to single-dimensional (so we can't use the generic test above with the test cases).
👍
As for the zero dimension case, isn't it the one that's already there (test case Empty_array)?
Yeah Zero_dimensional seems to be a duplicate test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no more Zero_dimensional test any more after this PR (I deleted it because the Empty_array case is the same). Is there still a duplicate test after this PR that I'm missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there still a duplicate test after this PR that I'm missing?
Not at all!
This is test cleanup work originally done in #5125 which was superceded.