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

algebra: adding tests for quat_add function #78

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

PNieck
Copy link
Contributor

@PNieck PNieck commented Sep 2, 2022

JIRA: PP-71

Description

This PR adds tests for quat_add function.

Motivation and Context

More precise tests.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

How Has This Been Tested?

  • Already covered by automatic testing.
  • New test added: (add PR link here).
  • Tested by hand on: (list targets here). armv7a9-zynq7000-qemu

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing linter checks and tests passed.
  • My changes generate no new compilation warnings for any of the targets.

Special treatment

  • This PR needs additional PRs to work (list the PRs, preferably in merge-order).
  • I will merge this PR by myself when appropriate.

@PNieck PNieck requested a review from niewim19 September 2, 2022 11:51
algebra/tests/quat/various.c Outdated Show resolved Hide resolved
algebra/tests/quat/various.c Outdated Show resolved Hide resolved
@PNieck PNieck force-pushed the PNieck/adding_tests_for_quat_add branch from e02d5f8 to ca80292 Compare September 2, 2022 11:53
niewim19
niewim19 previously approved these changes Sep 5, 2022
Copy link
Collaborator

@niewim19 niewim19 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 127 to 129
quat_t A = Q2;
quat_t B = Q3;
quat_t C = A; /* C is copy of A */
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need for comment :) Code is sufficiently self explanatory. If you want to emphasize it even more you can write:

	quat_t A = C = Q2;
	quat_t B = Q3;

but let`s keep it simple as it is :) Not a blocker.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I have deleted comment. BTW your suggestion won't work because C if not defined here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh... yeah, my mistake. I meant:

quat_t A, B, C;

A = C = Q2;
B = Q3;

Copy link
Collaborator

@niewim19 niewim19 left a comment

Choose a reason for hiding this comment

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

LGTM

@PNieck PNieck merged commit a3beead into main Sep 5, 2022
@PNieck PNieck deleted the PNieck/adding_tests_for_quat_add branch September 6, 2022 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants