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

[TEST] use EXPECT_RANGE_EQ in get_test... #2445

Merged
merged 3 commits into from
Mar 17, 2021
Merged

Conversation

marehr
Copy link
Member

@marehr marehr commented Mar 13, 2021

@marehr marehr requested review from a team and Irallia and removed request for a team March 13, 2021 00:51
@vercel
Copy link

vercel bot commented Mar 13, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/seqan/seqan3/6zKCgq7smcCbM5oMpXQU9mgb97Zf
✅ Preview: https://seqan3-git-fork-marehr-rangeeq05-seqan.vercel.app

@codecov
Copy link

codecov bot commented Mar 13, 2021

Codecov Report

Merging #2445 (ec95459) into master (9b66239) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2445      +/-   ##
==========================================
- Coverage   98.26%   98.26%   -0.01%     
==========================================
  Files         267      267              
  Lines       11065    11064       -1     
==========================================
- Hits        10873    10872       -1     
  Misses        192      192              
Impacted Files Coverage Δ
include/seqan3/alphabet/mask/masked.hpp 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b66239...ec95459. Read the comment docs.

Copy link
Contributor

@Irallia Irallia left a comment

Choose a reason for hiding this comment

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

Looks very good!
However, I noticed that the tests use a lot of meaningless variables like cmp0, t and is. Maybe you want to change something about that?
And I have a question about the using literal stuff. Maybe you want to add a short documentation notice?

I approve either way, you can decide if you want to rename the variables or if that is too much effort.

std::vector<seqan3::phred42> cmp1{seqan3::phred42{0}, seqan3::phred42{1}, seqan3::phred42{2}, seqan3::phred42{3}};
std::vector<seqan3::phred42> functor1 = seqan3::views::get<1>(t) | seqan3::views::to<std::vector>;
EXPECT_EQ(cmp1, functor1);
EXPECT_RANGE_EQ(cmp0, seqan3::views::get<0>(t));
Copy link
Contributor

Choose a reason for hiding this comment

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

As there is no cmp00 anymore you could rename cmp0 to cmp or maybe maybe use a more explanatory name as functor_compared.

Copy link
Member Author

Choose a reason for hiding this comment

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

I renamed the stuff in the get test.

test/unit/range/views/istreambuf_test.cpp Show resolved Hide resolved
Copy link
Member

@eseiler eseiler left a comment

Choose a reason for hiding this comment

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

Open point about renaming, otherwise LGTM

@marehr
Copy link
Member Author

marehr commented Mar 17, 2021

Open point about renaming, otherwise LGTM

😭 I don't want to rename everything.

@eseiler
Copy link
Member

eseiler commented Mar 17, 2021

Open point about renaming, otherwise LGTM

😭 I don't want to rename everything.

You don't necessarily need to, but you should address the point :)

@eseiler eseiler merged commit 11bc67e into seqan:master Mar 17, 2021
@marehr marehr deleted the range_eq05 branch March 23, 2021 21:06
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.

3 participants