Skip to content

Conversation

@futuarmo
Copy link
Contributor

@futuarmo futuarmo commented Oct 24, 2020

I searched occurences of using initializer_list according to issue #1184. In most cases initializer_list is used for testing initializer_list constructors or it is required for constructing other object, so I just filled initializer_lists manually, in pair of cases I replaced them

Fixes #1184

@futuarmo futuarmo requested a review from a team as a code owner October 24, 2020 10:39
@CaseyCarter CaseyCarter added the test Related to test code label Oct 27, 2020
Copy link
Member

@StephanTLavavej StephanTLavavej 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 fixing these unnecessarily nonconformant tests! Everything looks good to me, I just noticed one possible simplification and two extra newlines, so I'll push a small commit and move this forward to Final Review. 😺

Copy link
Contributor

@CaseyCarter CaseyCarter left a comment

Choose a reason for hiding this comment

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

Just one small change here that I'll apply directly.

Construct `discrete_distribution<>` from `initializer_list` as before.
@StephanTLavavej StephanTLavavej self-assigned this Oct 29, 2020
@StephanTLavavej StephanTLavavej merged commit 6e254cf into microsoft:master Oct 29, 2020
@StephanTLavavej
Copy link
Member

Thanks for fixing this issue and eliminating unnecessary non-Standard code from the test suite! 🎉

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

Labels

test Related to test code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tr1 tests are misusing initializer_list

3 participants