summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnand Thakker <github@anandthakker.net>2018-02-06 07:58:07 -0500
committerAnand Thakker <github@anandthakker.net>2018-02-06 07:58:07 -0500
commita2d0e1b6d6e95db9b090fb8616c811325ad26686 (patch)
tree05fc9a0daa34fce6ca7848493e5d6af79296594e
parent31f9421aabc9176c4866ab4ec7ab42846812565e (diff)
downloadqtlocation-mapboxgl-upstream/heatmap-color-codegen.tar.gz
Fix incorrect NSExpressions in MGLHeatmapColorTestsupstream/heatmap-color-codegen
-rw-r--r--platform/darwin/test/MGLHeatmapColorTests.mm6
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;