Skip to content

Commit

Permalink
t - test optional string, but it already works for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
jonreid committed Dec 18, 2023
1 parent bb1b754 commit a29508a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ final class DescribeMismatchTests: XCTestCase {
func test_describeStringWithTab_enclosesInQuotes_escapingBackslash() throws {
XCTAssertEqual(describe(String.self, value: "a\tb"), "\"a\\tb\"")
}

func test_describeOptionalStringWithTab_enclosesInQuotes_escapingBackslash() throws {
XCTAssertEqual(describe(String?.self, value: "a\tb"), "Optional(\"a\\tb\")")
}
}

0 comments on commit a29508a

Please sign in to comment.