Commit 01d5429 1 parent 04e8071 commit 01d5429 Copy full SHA for 01d5429
File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 2
2
#include " randstrobes.hpp"
3
3
4
4
5
- TEST_CASE (" test RefRandstrobe constructor" ) {
5
+ TEST_CASE (" RefRandstrobe constructor" ) {
6
6
randstrobe_hash_t hash = 0x1234567890ABCDEF & RANDSTROBE_HASH_MASK;
7
7
uint32_t position = ~0u ;
8
8
uint32_t ref_index = RefRandstrobe::max_number_of_references - 1 ;
@@ -16,3 +16,19 @@ TEST_CASE("test RefRandstrobe constructor") {
16
16
CHECK (rr.strobe2_offset () == offset);
17
17
CHECK (rr.first_strobe_is_main () == first_strobe_is_main);
18
18
}
19
+
20
+ TEST_CASE (" SyncmerIterator" ) {
21
+ std::string seq{" AAAAAAAAAAAAAAAAAAAA" };
22
+ CHECK (seq.size () == 20 );
23
+
24
+ SyncmerParameters parameters{8 , 4 };
25
+ CHECK (parameters.t_syncmer == 3 );
26
+ SyncmerIterator si{seq, parameters};
27
+
28
+ Syncmer syncmer;
29
+ syncmer = si.next ();
30
+ CHECK (!syncmer.is_end ());
31
+ CHECK (syncmer.position == 2ul );
32
+
33
+
34
+ }
You can’t perform that action at this time.
0 commit comments