diff options
-rw-r--r-- | platform/darwin/test/MGLHeatmapColorTests.mm | 6 |
1 files 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; |