-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
7unit tests now pass. 2 open issues to discuss with Sorina
1. Two unit tests are left commented out, but with all necessary API changes made. In both cases I am unsure of what input PRG and query read to use, and I've indicated where they should go. Sorina - can you help? 2. These warnings bother me: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper
- Loading branch information
Showing
1 changed file
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53598fc
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.
test files for PRGs with no variants are: one_byte.txt, 100a.txt, abc_abc_abc.txt, actg.txt, MSP3.4_200_bases.txt
for query, there is a function generate_all_substrings at the bottom, I was calling that and querying all the substrings of the PRG
A mask is not needed for the PRG with no variants, so you can leave it empty I think
53598fc
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.
what's the line of the warning in number 2?
53598fc
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.
for test Long_site_and_repeated_snp_on_edge_of_site:
test file is repeated_snp_on_both_edges.txt
query is tagacacacagtgtcgcctcgtcggctttgagtggtgctagacccca
Mask is match_within_long_site_mask_a.txt
53598fc
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.
I've started adding these - see 32b286f . f
53598fc
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.
Re warning line, it's every comparison between first_del and false
./test/unittest_bidir_search_bwd_fwd.cpp:74:5: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret_)’ [-Wconversion-null]
./test/unittest_bidir_search_bwd_fwd.cpp:87:5: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret_)’ [-Wconversion-null]
./test/unittest_bidir_search_bwd_fwd.cpp:43:8: warning: unused variable ‘precalc’ [-Wunused-variable]
./test/unittest_bidir_search_bwd_fwd.cpp: In member function ‘virtual void BackwardSearchTest_NoVariants2_Test::TestBody()’:
./test/unittest_bidir_search_bwd_fwd.cpp:116:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
./test/unittest_bidir_search_bwd_fwd.cpp:138:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
./test/unittest_bidir_search_bwd_fwd.cpp:153:5: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret_)’ [-Wconversion-null]
./test/unittest_bidir_search_bwd_fwd.cpp:166:5: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret_)’ [-Wconversion-null]
./test/unittest_bidir_search_bwd_fwd.cpp:122:8: warning: unused variable ‘precalc’ [-Wunused-variable]
./test/unittest_bidir_search_bwd_fwd.cpp: In member function ‘virtual void BackwardSearchTest_Two_matches_one_variable_one_nonvariable_region_Test::TestBody()’:
./test/unittest_bidir_search_bwd_fwd.cpp:318:3: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret_)’ [-Wconversion-null]
./test/unittest_bidir_search_bwd_fwd.cpp:334:3: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret_)’ [-Wconversion-null]
./test/unittest_bidir_search_bwd_fwd.cpp: In member function ‘virtual void BackwardSearchTest_Match_within_long_site_match_outside_Test::TestBody()’:
./test/unittest_bidir_search_bwd_fwd.cpp:442:3: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret_)’ [-Wconversion-null]
./test/unittest_bidir_search_bwd_fwd.cpp:459:3: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret_)’ [-Wconversion-null]
./test/unittest_bidir_search_bwd_fwd.cpp: In member function ‘virtual void BackwardSearchTest_Multiple_matches_over_multiple_sites_Test::TestBody()’:
53598fc
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.
Warnings mentioned in previous comments are fixed here: cce3cf9