Skip to content

Commit 9b2ed0a

Browse files
committed
Updated tests
1 parent b62961b commit 9b2ed0a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

internal/index/bleve_test.go

+27
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ func testCases() []testCase {
8585
Description: "Just test metadata",
8686
Subjects: []string{"History", "Middle age"},
8787
},
88+
AuthorsSlugs: []string{"perez"},
89+
SeriesSlug: "",
90+
SubjectsSlugs: []string{"history", "middle-age"},
8891
},
8992
},
9093
),
@@ -114,6 +117,9 @@ func testCases() []testCase {
114117
Description: "Just test metadata",
115118
Subjects: []string{""},
116119
},
120+
AuthorsSlugs: []string{"benoit"},
121+
SeriesSlug: "",
122+
SubjectsSlugs: []string{""},
117123
},
118124
},
119125
),
@@ -143,6 +149,9 @@ func testCases() []testCase {
143149
Description: "Just test metadata",
144150
Subjects: []string{""},
145151
},
152+
AuthorsSlugs: []string{"clifford-d-simak"},
153+
SeriesSlug: "",
154+
SubjectsSlugs: []string{""},
146155
},
147156
},
148157
),
@@ -171,6 +180,9 @@ func testCases() []testCase {
171180
Description: "Just test metadata",
172181
Subjects: []string{""},
173182
},
183+
AuthorsSlugs: []string{"james-ellroy"},
184+
SeriesSlug: "",
185+
SubjectsSlugs: []string{""},
174186
},
175187
},
176188
),
@@ -199,6 +211,9 @@ func testCases() []testCase {
199211
Description: "Just test metadata",
200212
Subjects: []string{""},
201213
},
214+
AuthorsSlugs: []string{"james-ellroy"},
215+
SeriesSlug: "",
216+
SubjectsSlugs: []string{""},
202217
},
203218
},
204219
),
@@ -228,6 +243,9 @@ func testCases() []testCase {
228243
Description: "Just test metadata",
229244
Subjects: []string{"History", "Middle age"},
230245
},
246+
AuthorsSlugs: []string{"anonimo"},
247+
SeriesSlug: "",
248+
SubjectsSlugs: []string{"history", "middle-age"},
231249
},
232250
},
233251
),
@@ -257,6 +275,9 @@ func testCases() []testCase {
257275
Description: "Just test metadata",
258276
Subjects: []string{"History", "Middle age"},
259277
},
278+
AuthorsSlugs: []string{"anonimo"},
279+
SeriesSlug: "",
280+
SubjectsSlugs: []string{"history", "middle-age"},
260281
},
261282
},
262283
),
@@ -286,6 +307,9 @@ func testCases() []testCase {
286307
Description: "Just test metadata",
287308
Subjects: []string{"History", "Middle age"},
288309
},
310+
AuthorsSlugs: []string{"irene-vallejo"},
311+
SeriesSlug: "",
312+
SubjectsSlugs: []string{"history", "middle-age"},
289313
},
290314
},
291315
),
@@ -315,6 +339,9 @@ func testCases() []testCase {
315339
Description: "Just test metadata",
316340
Subjects: []string{"History", "WWII"},
317341
},
342+
AuthorsSlugs: []string{"patrick-r-reid"},
343+
SeriesSlug: "",
344+
SubjectsSlugs: []string{"history", "wwii"},
318345
},
319346
},
320347
),

0 commit comments

Comments
 (0)