Skip to content

Fix type mismatch in standard_deviation() tests - #58

Merged
Finii merged 1 commit into
mainfrom
cleanup/type_mismatch
Sep 2, 2026
Merged

Fix type mismatch in standard_deviation() tests#58
Finii merged 1 commit into
mainfrom
cleanup/type_mismatch

Conversation

@alt-graph

Copy link
Copy Markdown
Member

The return value of StandardDeviation<T>::mean() in this test case for standard_deviation() is of the default type, double. Therefore we should compare it to a double literal, not to TestType.

[why]
The return value of StandardDeviation<T>::mean() in this case is the
default, double. Therefore we should compare it to a double literal, not
to TestType.
@alt-graph alt-graph self-assigned this Sep 1, 2026
@alt-graph
alt-graph marked this pull request as ready for review September 1, 2026 15:54

@Finii Finii left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good find!

Luckily it was not me who added that code with TestType in the first place 😅

5e5eb0f Add tests for standard_deviation()

image

Edit: Typo

@Finii
Finii merged commit 48b1d7c into main Sep 2, 2026
7 checks passed
@Finii
Finii deleted the cleanup/type_mismatch branch September 2, 2026 07:51
@Finii

Finii commented Sep 2, 2026

Copy link
Copy Markdown
Member

Hmm, I must admit I do not understand what assigning 'all' means. I thought you assigned me specifically, that is why I merged.

image

How can all be assigned?

@alt-graph

Copy link
Copy Markdown
Member Author

Hmm, I must admit I do not understand what assigning 'all' means. I thought you assigned me specifically, that is why I merged.

Ah, sorry, I got into the wrong section. I meant to request a review from everyone, not assign everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants