                              source,
                              &legacyDestination)
             
-            expectTrue(destination.elementsEqual(legacyDestination))
-            expectTrue(destination.elementsEqual(returnedResult))
-        }
-    }
-}
-  
-//===----------------------------------------------------------------------===//
-//
-//  Sliding window summation
-//
-//===----------------------------------------------------------------------===//
-
-if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
+            expectTrue(elementsAlmostEqual(destination, legacyDestination))
+            expectTrue(elementsAlmostEqual(destination, returnedResult))
+        }
+    }
+
+    //===----------------------------------------------------------------------===//
+    //
+    //  Sliding window summation
+    //
+    //===----------------------------------------------------------------------===//
   
     AccelerateTests.test("vDSP/SinglePrecisionSlidingWindowSum") {
         let source: [Float] = [1, 10, 12, 9, 3, 7, 2, 6]

        let returnedResult = vDSP.linearInterpolate(elementsOf: shortSignal,
                                                    using: controlVector)
        
        expectTrue(result.elementsEqual(legacyResult))
        expectTrue(result.elementsEqual(returnedResult))
    }
}

//===----------------------------------------------------------------------===//
//
//  vDSP difference equation
//
//===----------------------------------------------------------------------===//

if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
    
    AccelerateTests.test("vDSP/DifferenceEquationSinglePrecision") {
        let n = 256
        

        let returnedResult = vDSP.linearInterpolate(a, b,
                                                    using: interpolationConstant)
        
        expectTrue(elementsAlmostEqual(result, legacyResult))
        expectTrue(elementsAlmostEqual(result, returnedResult))
    }
    
    AccelerateTests.test("vDSP/SinglePrecisionInterpolateBetweenNeighbours") {
