-
Notifications
You must be signed in to change notification settings - Fork 41
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
Tests for warnings in the body section #121
base: master
Are you sure you want to change the base?
Conversation
test/vcf/optional_policy_test.cpp
Outdated
|
||
SECTION("Reference and alternate alleles share first nucleotide") | ||
{ | ||
vcf::Record record1( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use { }
for constructors. using ( )
is somewhat deprecated unless necessary.
test/vcf/optional_policy_test.cpp
Outdated
{ }, | ||
{ }, | ||
source); | ||
record1.types = { vcf::RecordType::INDEL }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is not necessary, the constructor takes care
test/vcf/optional_policy_test.cpp
Outdated
{ }, | ||
{ }, | ||
source); | ||
record2.types = { vcf::RecordType::MNV }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want it to be a MNV, remove this line and change the ref and alt alleles to GT and AC respectively, look at Record::set_types
test/vcf/optional_policy_test.cpp
Outdated
{ }, | ||
{ }, | ||
source); | ||
record3.types = { vcf::RecordType::INDEL }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, not needed.
Thank you for suggesting the changes. I have added them in next commit. Can you please take a look? |
test/vcf/optional_policy_test.cpp
Outdated
} | ||
} | ||
|
||
TEST_CASE("Record Reference Alternate matching warnings", "[body reference alternate matching warnings]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tags are a way to group tests, so it's not really useful to have so many specific tags.
https://github.com/catchorg/Catch2/blob/master/docs/test-cases-and-sections.md#tags
I would keep just [warnings]
for these tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed :)
4a4d6d9
to
cdcf5df
Compare
cdcf5df
to
f106dab
Compare
f106dab
to
ce18628
Compare
This PR aims to solve issue #92 partially.
Added tests for position, id, reference alternate matching and info imprecise.