swiftlang / swift-corelibs-xctest

The XCTest Project, A Swift core library for providing unit test support
swift.org
Apache License 2.0
1.15k stars 267 forks source link

Removing additional quotes around values in a XCTAssertEqual #482

Open abrarShariar opened 8 months ago

abrarShariar commented 8 months ago

Removing unnecessary quotes but keeping the parenthesis as mentioned here:

https://github.com/apple/swift-corelibs-xctest/issues/473

The parenthesis would still show that whatever it wraps is a value type and separate it out of the actual logging text.

for example:

("3") is not equal to ("1")

becomes:

(3) is not equal to (1)

for strings:

(Hello world) is not equal to (Hello)
abrarShariar commented 8 months ago

Taking it to draft to gather feedback from team and add additional enhancement. https://github.com/apple/swift-corelibs-xctest/issues/473#issuecomment-2016714708