Skip to content

Commit 1ea949b

Browse files
committed
Fix TestHost.test_isEqual
1 parent 71ca3b6 commit 1ea949b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

TestFoundation/TestHost.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ class TestHost: XCTestCase {
4141

4242
let host2 = Host(address: "8.8.8.9")
4343
XCTAssertFalse(host0.isEqual(to: host2))
44+
45+
let swift0 = Host(name: "swift.org")
46+
let swift1 = Host(name: "swift.org")
47+
XCTAssertTrue(swift0.isEqual(to: swift1))
48+
49+
let google = Host(name: "google.com")
50+
XCTAssertFalse(swift0.isEqual(to: google))
4451
}
4552
}
4653

0 commit comments

Comments
 (0)