From 8021c5d96806295e895211929ba853f7529c34b3 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Sun, 15 Jan 2017 14:45:52 -0800 Subject: [PATCH] Fix test bug Summary: Simple fix on a possible copy paste error. The test actually passes the same way by coincidence. Closes https://github.com/facebook/yoga/pull/338 Reviewed By: dshahidehpour Differential Revision: D4415019 Pulled By: emilsjolander fbshipit-source-id: 823c3efc821db14b70d9dfe99ef87d1d7ebb75d0 --- YogaKit/Tests/YogaKitTests.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YogaKit/Tests/YogaKitTests.m b/YogaKit/Tests/YogaKitTests.m index 79f7043c..41b39925 100644 --- a/YogaKit/Tests/YogaKitTests.m +++ b/YogaKit/Tests/YogaKitTests.m @@ -214,7 +214,7 @@ [container.yoga applyLayout]; for (UIView *view in container.subviews) { - XCTAssertTrue(CGSizeEqualToSize(CGSizeMake(100, 50), subview1.bounds.size), @"Actual size is %@", NSStringFromCGSize(view.bounds.size)); + XCTAssertTrue(CGSizeEqualToSize(CGSizeMake(100, 50), view.bounds.size), @"Actual size is %@", NSStringFromCGSize(view.bounds.size)); } subview3.yoga.isIncludedInLayout = NO; @@ -287,7 +287,7 @@ subview3.yoga.isIncludedInLayout = YES; [container.yoga applyLayout]; for (UIView *view in container.subviews) { - XCTAssertTrue(CGSizeEqualToSize(CGSizeMake(100, 50), subview1.bounds.size), @"Actual size is %@", NSStringFromCGSize(view.bounds.size)); + XCTAssertTrue(CGSizeEqualToSize(CGSizeMake(100, 50), view.bounds.size), @"Actual size is %@", NSStringFromCGSize(view.bounds.size)); } }