blob: 34afbd10270c8a3258b581aa478906a8630e1dc4 [file] [log] [blame]
This source file is part of the open source project
Copyright 2016 Apple Inc. and the Swift project authors
Licensed under Apache License v2.0 with Runtime Library Exception
See for license information
See for Swift project authors
import XCTest
import Basic
class CStringArrayTests: XCTestCase {
func testInitialization() {
let array = CStringArray(["hello", "world"])
XCTAssertEqual(array.cArray.count, 3)
XCTAssertEqual(String(cString: array.cArray[0]!), "hello")
XCTAssertEqual(String(cString: array.cArray[1]!), "world")
static var allTests = [
("testInitialization", testInitialization),