Skip to content

Commit d35d3dc

Browse files
✨ feat(data): More tests.
1 parent b3da9fd commit d35d3dc

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

src/data.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ const data = [
6363
pattern: 'bcd',
6464
hits: [1],
6565
},
66+
{
67+
pattern: 'dcba',
68+
hits: [],
69+
},
6670
{
6771
pattern: 'xyz',
6872
hits: [],
@@ -106,6 +110,15 @@ const data = [
106110
},
107111
],
108112
},
113+
{
114+
string: 'aaaaaaaaaab',
115+
patterns: [
116+
{
117+
pattern: 'aaa',
118+
hits: [0, 1, 2, 3, 4, 5, 6, 7],
119+
},
120+
],
121+
},
109122
{
110123
string: 'tototo',
111124
patterns: [
@@ -115,6 +128,27 @@ const data = [
115128
},
116129
],
117130
},
131+
{
132+
string: 'aaaa',
133+
patterns: [
134+
{
135+
pattern: 'a',
136+
hits: [0, 1, 2, 3],
137+
},
138+
{
139+
pattern: 'aa',
140+
hits: [0, 1, 2],
141+
},
142+
{
143+
pattern: 'aaa',
144+
hits: [0, 1],
145+
},
146+
{
147+
pattern: 'aaaa',
148+
hits: [0],
149+
},
150+
],
151+
},
118152
{
119153
string: 'aaaaa',
120154
patterns: [

0 commit comments

Comments
 (0)