blob: 43b4662e3c1d42a83cfb46c5bed21fb7da00a352 [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 CollectionExtensionsTests: XCTestCase {
func testOnly() {
XCTAssertEqual([String]().only, nil)
XCTAssertEqual([42].only, 42)
XCTAssertEqual([42, 24].only, nil)
static var allTests = [
("testOnly", testOnly),