diff options
author | Anand Thakker <github@anandthakker.net> | 2018-02-06 07:58:07 -0500 |
---|---|---|
committer | Anand Thakker <github@anandthakker.net> | 2018-02-06 07:58:07 -0500 |
commit | a2d0e1b6d6e95db9b090fb8616c811325ad26686 (patch) | |
tree | 05fc9a0daa34fce6ca7848493e5d6af79296594e | |
parent | 31f9421aabc9176c4866ab4ec7ab42846812565e (diff) | |
download | qtlocation-mapboxgl-upstream/heatmap-color-codegen.tar.gz |
Fix incorrect NSExpressions in MGLHeatmapColorTestsupstream/heatmap-color-codegen
-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; |