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

Extend tests with all rounding directions #500

Merged
merged 6 commits into from
Aug 22, 2020
Merged

Conversation

chfast
Copy link
Collaborator

@chfast chfast commented Aug 21, 2020

No description provided.

@codecov
Copy link

codecov bot commented Aug 21, 2020

Codecov Report

Merging #500 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #500   +/-   ##
=======================================
  Coverage   99.67%   99.67%           
=======================================
  Files          54       54           
  Lines       17108    17180   +72     
=======================================
+ Hits        17053    17125   +72     
  Misses         55       55           

@chfast chfast marked this pull request as ready for review August 21, 2020 11:26
@chfast chfast requested review from axic and gumb0 August 21, 2020 11:26
@chfast chfast force-pushed the rounding_direction_tests branch 2 times, most recently from afe00a9 to 6897640 Compare August 21, 2020 15:40
@@ -355,42 +364,43 @@ TYPED_TEST(execute_floating_point_types, binop_nan_propagation)
for (const auto op : opcodes)
{
auto instance = instantiate(parse(this->get_binop_code(op)));
const auto exec = [&](auto arg1, auto arg2) { return execute(*instance, 0, {arg1, arg2}); };
Copy link
Member

Choose a reason for hiding this comment

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

Any particular need for this refactoring or just making it less code duplication?

{
EXPECT_THAT(execute(*inst, eq, {a, b}), Result(0)) << a << "==" << b;
Copy link
Member

Choose a reason for hiding this comment

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

Strange why did clang-format agree with previous identation.

@axic
Copy link
Member

axic commented Aug 21, 2020

@gumb0 hint: if you want to review this post-merge, make sure to turn on "hide whitespace changes" in the diff.

@chfast chfast merged commit 2889075 into master Aug 22, 2020
@chfast chfast deleted the rounding_direction_tests branch August 22, 2020 13:49
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