Skip to content

Commit 18c33ed

Browse files
[NFC] use characters that are more suitable for Version.init(extendedGraphemeClusterLiteral:) and Version.init(unicodeScalarLiteral:) in teseting
1 parent 411e395 commit 18c33ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/PackageDescriptionTests/VersionTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,11 @@ class VersionTests: XCTestCase {
525525
// A semantic version string is always longer than 1 character, so the only way to test these 2 initialisers is by calling them directly.
526526

527527
func testExpressingVersionByExtendedGraphemeClusterLiteral() {
528-
XCTAssertEqual(Version(extendedGraphemeClusterLiteral: ""), Version(0, 0, 0))
528+
XCTAssertEqual(Version(extendedGraphemeClusterLiteral: "版⃣"), Version(0, 0, 0))
529529
}
530530

531531
func testExpressingVersionByUnicodeScalarLiteral() {
532-
XCTAssertEqual(Version(unicodeScalarLiteral: "é"), Version(0, 0, 0))
532+
XCTAssertEqual(Version(unicodeScalarLiteral: "a"), Version(0, 0, 0))
533533
}
534534

535535
func testInitializingVersionFromVersion() {

0 commit comments

Comments
 (0)