2017-04-21 23:34:49 +00:00
|
|
|
/**
|
2018-11-01 17:56:41 +00:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2017-04-21 23:34:49 +00:00
|
|
|
*
|
2018-05-01 21:33:50 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2017-04-21 23:34:49 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#import "IGListDebuggingUtilities.h"
|
|
|
|
|
|
|
|
|
|
NSString *IGListDebugBOOL(BOOL b) {
|
|
|
|
|
return b ? @"Yes" : @"No";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NSArray<NSString *> *IGListDebugIndentedLines(NSArray<NSString *> *lines) {
|
|
|
|
|
NSMutableArray *newLines = [NSMutableArray new];
|
|
|
|
|
for (NSString *line in lines) {
|
|
|
|
|
[newLines addObject:[NSString stringWithFormat:@" %@", line]];
|
|
|
|
|
}
|
|
|
|
|
return newLines;
|
|
|
|
|
}
|