From a2d0e1b6d6e95db9b090fb8616c811325ad26686 Mon Sep 17 00:00:00 2001 From: Anand Thakker Date: Tue, 6 Feb 2018 07:58:07 -0500 Subject: Fix incorrect NSExpressions in MGLHeatmapColorTests --- platform/darwin/test/MGLHeatmapColorTests.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/darwin/test/MGLHeatmapColorTests.mm b/platform/darwin/test/MGLHeatmapColorTests.mm index 74045ea68e..8d44064d94 100644 --- a/platform/darwin/test/MGLHeatmapColorTests.mm +++ b/platform/darwin/test/MGLHeatmapColorTests.mm @@ -21,7 +21,7 @@ @"heatmap-color should be unset initially."); NSExpression *defaultExpression = layer.heatmapColor; - NSExpression *constantExpression = [NSExpression expressionWithFormat:@"red"]; + NSExpression *constantExpression = [NSExpression expressionWithFormat:@"%@", [MGLColor redColor]]; layer.heatmapColor = constantExpression; @@ -31,8 +31,8 @@ XCTAssertEqualObjects(layer.heatmapColor, constantExpression, @"heatmapColor should round-trip constant value expressions."); - constantExpression = [NSExpression expressionWithFormat:@"red"]; - NSExpression *constantExpression2 = [NSExpression expressionWithFormat:@"blue"]; + constantExpression = [NSExpression expressionWithFormat:@"%@", [MGLColor redColor]]; + NSExpression *constantExpression2 = [NSExpression expressionWithFormat:@"%@", [MGLColor blueColor]]; NSExpression *functionExpression = [NSExpression expressionWithFormat:@"FUNCTION($heatmapDensity, 'mgl_stepWithMinimum:stops:', %@, %@)", constantExpression, @{@12: constantExpression2}]; layer.heatmapColor = functionExpression; -- cgit v1.2.1