File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -430,6 +430,20 @@ - (void)testArrayAndDic {
430430 array = [NSArray yy_modelArrayWithClass: YYTestAutoTypeModel.class json: [YYTestHelper jsonObjectFromString: json]];
431431 XCTAssertTrue (array.count == 3 );
432432 XCTAssertTrue ([array.firstObject isKindOfClass: [YYTestAutoTypeModel class ]]);
433+
434+
435+ json = @" [[[{\" v\" :1},{\" v\" :2},{\" v\" :3}]]]" ;
436+ NSArray *array = [NSArray yy_modelArrayWithClass: YYTestAutoTypeModel.class json: json];
437+ XCTAssertTrue (array.count == 1 );
438+ XCTAssertTrue ([array.firstObject.firstObject.firstObject isKindOfClass: [YYTestAutoTypeModel class ]]);
439+
440+ array = [NSArray yy_modelArrayWithClass: YYTestAutoTypeModel.class json: [YYTestHelper jsonDataFromString: json]];
441+ XCTAssertTrue (array.count == 1 );
442+ XCTAssertTrue ([array.firstObject.firstObject.firstObject isKindOfClass: [YYTestAutoTypeModel class ]]);
443+
444+ array = [NSArray yy_modelArrayWithClass: YYTestAutoTypeModel.class json: [YYTestHelper jsonObjectFromString: json]];
445+ XCTAssertTrue (array.count == 1 );
446+ XCTAssertTrue ([array.firstObject.firstObject.firstObject isKindOfClass: [YYTestAutoTypeModel class ]]);
433447
434448
435449 json = @" {\" a\" :{\" v\" :1},\" b\" :{\" v\" :2},\" c\" :{\" v\" :3}}" ;
You can’t perform that action at this time.
0 commit comments