 }
 
 UnsafeMutableBufferPointerSliceTests.test(
-  "slice.of.UnsafeMutableRawBufferpointer.initializeMemory.fromElements"
+  "slice.of.UnsafeMutableRawBufferpointer.initializeMemory.fromContentsOf"
 ) {
   let c = 4
   let mb = UnsafeMutableRawBufferPointer.allocate(

  var b = a

  var i: Int?
  i = buffer.initialize(fromElements: source)
  expectEqual(i, c)
  i = a.withContiguousMutableStorageIfAvailable {
    $0.moveUpdate(fromElements: buffer)
  }
  expectEqual(i, c)
  expectEqual(a, source)
  i = buffer.initialize(fromElements: source)
  expectEqual(i, c)
  i = b.withContiguousMutableStorageIfAvailable {
    $0[...].moveUpdate(fromElements: buffer)
  }
  expectEqual(i, c)
  expectEqual(a, b)

  i = buffer.initialize(fromElements: source.prefix(n))
  expectEqual(i, n)
  i = a.withContiguousMutableStorageIfAvailable {
    $0.moveUpdate(fromElements: buffer[..<n])
  }
  expectEqual(i, n)
  expectEqual(a[..<n], source[..<n])
  i = buffer.initialize(fromElements: source.prefix(n))
  expectEqual(i, n)
  i = b.withContiguousMutableStorageIfAvailable {
    $0.moveUpdate(fromElements: buffer[..<n])
  }
  expectEqual(i, n)
  expectEqual(a[..<n], b[..<n])

}

UnsafeMutableBufferPointerSliceTests.test(
  "slice.of.UnsafeMutableBufferPointer.initialize.fromContentsOf.Collection"
) {
  let c = 4
  let mb = UnsafeMutableBufferPointer<String>.allocate(capacity: c)
  defer { mb.deallocate() }

  var ct = mb.initialize(fromContentsOf: (1...c).map(String.init))
  expectEqual(ct, c)
  expectEqual(mb.compactMap(Int.init).reduce(0,+), c*(c+1)/2)
  var rb = mb.deinitialize()
  expectEqual(rb.count, c*MemoryLayout<String>.stride)

  ct = mb[...].initialize(fromContentsOf: (1...c).map(String.init))
  expectEqual(ct, c)
  expectEqual(mb.compactMap(Int.init).reduce(0,+), c*(c+1)/2)
  rb = mb[...].deinitialize()
