Skip to content

Instantly share code, notes, and snippets.

@AlexFlyce
Created September 25, 2019 14:27
Show Gist options
  • Save AlexFlyce/c4f756875219d2718028f080a2c82590 to your computer and use it in GitHub Desktop.
Save AlexFlyce/c4f756875219d2718028f080a2c82590 to your computer and use it in GitHub Desktop.
XCTUnwrap_1.swift
func testFirstNameNotEmpty() throws {
let forenames: [String] = customer.forenames
let firstName = try XCTUnwrap(forenames.first)
XCTAssertFalse(firstName.isEmpty)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment