diff options
Diffstat (limited to 'platform/darwin/test/MGLDocumentationExampleTests.swift')
-rw-r--r-- | platform/darwin/test/MGLDocumentationExampleTests.swift | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/platform/darwin/test/MGLDocumentationExampleTests.swift b/platform/darwin/test/MGLDocumentationExampleTests.swift index f409de5b4a..7d6bdbed54 100644 --- a/platform/darwin/test/MGLDocumentationExampleTests.swift +++ b/platform/darwin/test/MGLDocumentationExampleTests.swift @@ -556,13 +556,10 @@ class MGLDocumentationExampleTests: XCTestCase, MGLMapViewDelegate { } func testMGLShapeSourceOptionClusterProperties() { - - //#-example-code - let key = "sumValue" - let firstExpression = NSExpression(format: "sum({ $featureAccumulated, %@ })", key) + let firstExpression = NSExpression(format: "sum:({$featureAccumulated, sumValue})") let secondExpression = NSExpression(forKeyPath: "magnitude") - let clusterPropertiesDictionary = [key : [firstExpression, secondExpression]] + let clusterPropertiesDictionary = ["sumValue" : [firstExpression, secondExpression]] let options : [MGLShapeSourceOption : Any] = [.clustered : true, .clusterProperties: clusterPropertiesDictionary] |