@@ -262,8 +262,22 @@ - (void)testDiffGeneralCases {
262
262
263
263
- (void )testSimpleInsertionCase {
264
264
NSArray *initial = @[];
265
- NSArray *result =
266
- @[@" a" , @" b" , @" c" , @" d" , @" e" , @" f" , @" g" , @" h" , @" i" , @" j" , @" k" , @" l" , @" m" , @" n" ];
265
+ NSArray *result = @[
266
+ [FUIDocumentSnapshot documentWithID: @" a" ],
267
+ [FUIDocumentSnapshot documentWithID: @" b" ],
268
+ [FUIDocumentSnapshot documentWithID: @" c" ],
269
+ [FUIDocumentSnapshot documentWithID: @" d" ],
270
+ [FUIDocumentSnapshot documentWithID: @" e" ],
271
+ [FUIDocumentSnapshot documentWithID: @" f" ],
272
+ [FUIDocumentSnapshot documentWithID: @" g" ],
273
+ [FUIDocumentSnapshot documentWithID: @" h" ],
274
+ [FUIDocumentSnapshot documentWithID: @" i" ],
275
+ [FUIDocumentSnapshot documentWithID: @" j" ],
276
+ [FUIDocumentSnapshot documentWithID: @" k" ],
277
+ [FUIDocumentSnapshot documentWithID: @" l" ],
278
+ [FUIDocumentSnapshot documentWithID: @" m" ],
279
+ [FUIDocumentSnapshot documentWithID: @" n" ],
280
+ ];
267
281
268
282
NSMutableArray *changes = [NSMutableArray arrayWithCapacity: 14 ];
269
283
for (NSInteger i = 0 ; i < 14 ; i++) {
@@ -295,8 +309,23 @@ - (void)testSimpleInsertionCase {
295
309
}
296
310
297
311
- (void )testSimpleChangeCase {
298
- NSArray *initial =
299
- @[@" a" , @" b" , @" c" , @" d" , @" e" , @" f" , @" g" , @" h" , @" i" , @" j" , @" k" , @" l" , @" m" , @" n" ];
312
+ NSArray *initial = @[
313
+ [FUIDocumentSnapshot documentWithID: @" a" ],
314
+ [FUIDocumentSnapshot documentWithID: @" b" ],
315
+ [FUIDocumentSnapshot documentWithID: @" c" ],
316
+ [FUIDocumentSnapshot documentWithID: @" d" ],
317
+ [FUIDocumentSnapshot documentWithID: @" e" ],
318
+ [FUIDocumentSnapshot documentWithID: @" f" ],
319
+ [FUIDocumentSnapshot documentWithID: @" g" ],
320
+ [FUIDocumentSnapshot documentWithID: @" h" ],
321
+ [FUIDocumentSnapshot documentWithID: @" i" ],
322
+ [FUIDocumentSnapshot documentWithID: @" j" ],
323
+ [FUIDocumentSnapshot documentWithID: @" k" ],
324
+ [FUIDocumentSnapshot documentWithID: @" l" ],
325
+ [FUIDocumentSnapshot documentWithID: @" m" ],
326
+ [FUIDocumentSnapshot documentWithID: @" n" ],
327
+ ];
328
+
300
329
NSArray *result = initial;
301
330
302
331
NSMutableArray *changes = [NSMutableArray arrayWithCapacity: 14 ];
@@ -329,8 +358,22 @@ - (void)testSimpleChangeCase {
329
358
}
330
359
331
360
- (void )testSimpleDeletionCase {
332
- NSArray *initial =
333
- @[@" a" , @" b" , @" c" , @" d" , @" e" , @" f" , @" g" , @" h" , @" i" , @" j" , @" k" , @" l" , @" m" , @" n" ];
361
+ NSArray *initial = @[
362
+ [FUIDocumentSnapshot documentWithID: @" a" ],
363
+ [FUIDocumentSnapshot documentWithID: @" b" ],
364
+ [FUIDocumentSnapshot documentWithID: @" c" ],
365
+ [FUIDocumentSnapshot documentWithID: @" d" ],
366
+ [FUIDocumentSnapshot documentWithID: @" e" ],
367
+ [FUIDocumentSnapshot documentWithID: @" f" ],
368
+ [FUIDocumentSnapshot documentWithID: @" g" ],
369
+ [FUIDocumentSnapshot documentWithID: @" h" ],
370
+ [FUIDocumentSnapshot documentWithID: @" i" ],
371
+ [FUIDocumentSnapshot documentWithID: @" j" ],
372
+ [FUIDocumentSnapshot documentWithID: @" k" ],
373
+ [FUIDocumentSnapshot documentWithID: @" l" ],
374
+ [FUIDocumentSnapshot documentWithID: @" m" ],
375
+ [FUIDocumentSnapshot documentWithID: @" n" ],
376
+ ];
334
377
NSArray *result = @[];
335
378
336
379
NSMutableArray *changes = [NSMutableArray arrayWithCapacity: 14 ];
0 commit comments