// RUN: %target-build-swift -Xfrontend -disable-access-control -module-name a %s -o %t.out -O // RUN: %target-run %t.out // REQUIRES: executable_test import SwiftPrivate import StdlibUnittest // Also import modules which are used by StdlibUnittest internally. This // workaround is needed to link all required libraries in case we compile // StdlibUnittest with -sil-serialize-all. import SwiftPrivate #if _runtime(_ObjC) import ObjectiveC #endif var HashingTestSuite = TestSuite("Hashing") func avalancheTest(bits: Int, _ hashUnderTest: (UInt64) -> UInt64, _ pValue: Double) { let testsInBatch = 100000 let testData = randArray64(testsInBatch) let testDataHashed = Array(testData.lazy.map { hashUnderTest($0) }) for inputBit in 0..(allocatingCapacity: bits) for i in 0..> 1 } } for outputBit in 0..