Skip to content
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

GH-37253: [MATLAB] Add test cases which verify that the NumFields, BitWidth, and ID properties can not be modified to hFixedWidth test class #37316

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

kevingurney
Copy link
Member

@kevingurney kevingurney commented Aug 22, 2023

Rationale for this change

As @sgilmore10 pointed out in #37250 (comment), it makes sense to move the tests which verify that the NumFields, BitWidth, and ID properties cannot be set into the hFixedWidthType superclass, rather than having these tests implemented in tTime32Type and tTime64Type, since they are common to all fixed width types.

What changes are included in this PR?

  1. Moved tests which verify that the BitWidth, NumFields, and ID properties cannot be set out of the tTime32Type and tTime64Type classes and into the superclass hFixedWidthType.
  2. Fixed typo in tTime32Type and tTime64Type. Changed variable name schema to type.

Are these changes tested?

Yes.

  1. Moved tests which verify that the BitWidth, NumFields, and ID properties cannot be set out of the tTime32Type and tTime64Type classes and into the superclass hFixedWidthType.

Are there any user-facing changes?

No.

This pull request only modifies tests.

Copy link
Member

@sgilmore10 sgilmore10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this!

@kevingurney
Copy link
Member Author

+1

@kevingurney kevingurney merged commit faa4652 into apache:main Aug 22, 2023
9 checks passed
@kevingurney kevingurney deleted the GH-37253 branch August 22, 2023 19:50
@kevingurney kevingurney removed the awaiting committer review Awaiting committer review label Aug 22, 2023
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit faa4652.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them.

loicalleyne pushed a commit to loicalleyne/arrow that referenced this pull request Nov 13, 2023
…lds`, `BitWidth`, and `ID` properties can not be modified to `hFixedWidth` test class (apache#37316)

### Rationale for this change

As @ sgilmore10 pointed out in apache#37250 (comment), it makes sense to move the tests which verify that the `NumFields`, `BitWidth`, and `ID` properties cannot be set into the `hFixedWidthType` superclass, rather than having these tests implemented in `tTime32Type` and `tTime64Type`, since they are common to all fixed width types.

### What changes are included in this PR?

1. Moved tests which verify that the `BitWidth`, `NumFields`, and `ID` properties cannot be set out of the `tTime32Type` and `tTime64Type` classes and into the superclass `hFixedWidthType`.
2. Fixed typo in `tTime32Type` and `tTime64Type`. Changed variable name `schema` to `type`.

### Are these changes tested?

Yes.

1. Moved tests which verify that the `BitWidth`, `NumFields`, and `ID` properties cannot be set out of the `tTime32Type` and `tTime64Type` classes and into the superclass `hFixedWidthType`.

### Are there any user-facing changes?

No.

This pull request only modifies tests.
* Closes: apache#37253

Authored-by: Kevin Gurney <[email protected]>
Signed-off-by: Kevin Gurney <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants