 
             let newCurve = curve.replace(range: 0 ... 2, withPoints: events)
 
-            let expected = [ Point(targetValue: 100, startTime: 0.5, rampDuration: 0.01),
-                             Point(targetValue: 200, startTime: 1.5, rampDuration: 0.01)]
+            let expected = [ Point(targetValue: 100,
+                                   startTime: 0.5,
+                                   rampDuration: 0.01),
+                             Point(targetValue: 200,
+                                   startTime: 1.5,
+                                   rampDuration: 0.01)]
 
             XCTAssertEqual(newCurve.points, expected)
         }()
     }
 
     func testEvaluateAutomationLinear() {
-        let curve = AKAutomationCurve(points: [Point(targetValue: 1, startTime: 0, rampDuration: 1.0)])
+        let curve = AKAutomationCurve(points: [Point(targetValue: 1,
+                                                     startTime: 0,
+                                                     rampDuration: 1.0)])
 
         let events = curve.evaluate(initialValue: 0, resolution: 0.5)
 

    func testEvaluateAutomationTwoSegment2() {

        // Curved segment cut off by linear segment.
        let curve = AKAutomationCurve(points: [Point(targetValue: 1, startTime: 0, rampDuration: 2.0, rampTaper: 1.0, rampSkew: 0.000001),
                                               Point(targetValue: 1, startTime: 1, rampDuration: 0.0)])

        let events = curve.evaluate(initialValue: 0,
                                    resolution: 0.5)

    func testReplaceAutomation() {

    {
        let curve = AKAutomationCurve(points: [ Point(targetValue: 440,
                                                      startTime: 0,
                                                      rampDuration: 0.1),
                                                Point(targetValue: 880,
                                                      startTime: 1,
                                                      rampDuration: 0.1),
                                                Point(targetValue: 440,
                                                      startTime: 2,
                                                      rampDuration: 0.1)])

        let events: [(Double, AUValue)] = [ (0.5, 100), (1.5, 200) ]

        let newCurve = curve.replace(range: 0.25 ... 1.75, withPoints: events)

        let expected = [ Point(targetValue: 440,
                               startTime: 0,
                               rampDuration: 0.1),
                         Point(targetValue: 100,
                               startTime: 0.5,
                               rampDuration: 0.01),
                         Point(targetValue: 200,
                               startTime: 1.5,
                               rampDuration: 0.01),
                         Point(targetValue: 440,
                               startTime: 2,
                               rampDuration: 0.1)]

        XCTAssertEqual(newCurve.points, expected)
        }();


        {
            let curve = AKAutomationCurve(points: [ Point(targetValue: 440,
                                                          startTime: 0,
                                                          rampDuration: 0.1),
                                                    Point(targetValue: 880,
                                                          startTime: 1,
                                                          rampDuration: 0.1),
                                                    Point(targetValue: 440,
                                                          startTime: 2,
                                                          rampDuration: 0.1)])

            let events: [(Double, AUValue)] = [ ]

