aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/third_party/Immutable/Tests/FSTImmutableSortedSet+Testing.m
blob: d4d81e0ae5a0b8b89eb464b27daaa5b39107957c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#import "FSTImmutableSortedSet+Testing.h"

NS_ASSUME_NONNULL_BEGIN

@implementation FSTImmutableSortedSet (Testing)

- (NSArray<id> *)allObjects {
  NSMutableArray<id> *result = [NSMutableArray array];
  [self enumerateObjectsUsingBlock:^(id object, BOOL *stop) {
    [result addObject:object];
  }];
  return result;
}

@end

NS_ASSUME_NONNULL_END