We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9cda42 commit 37e81c2Copy full SHA for 37e81c2
Tests/DesignAlgorithmsKitTests/Creational/SingletonTests.swift
@@ -253,9 +253,10 @@ final class SingletonTests: XCTestCase {
253
// Doesn't override createShared() - would cause fatalError if .shared is accessed
254
}
255
256
- // When/Then - Verify the class can be defined
+ // When/Then - Verify the class can be defined and is a ThreadSafeSingleton
257
// The fatalError in createShared() would occur at runtime when accessing .shared
258
- XCTAssertTrue(NoCreateSharedSingleton.self is ThreadSafeSingleton.Type)
+ let type: ThreadSafeSingleton.Type = NoCreateSharedSingleton.self
259
+ XCTAssertNotNil(type)
260
261
262
func testThreadSafeSingletonInit() {
0 commit comments