@@ -66,8 +66,8 @@ final class DependencyValuesTests: XCTestCase {
6666 }
6767
6868 func testDependencyDefaultIsReused( ) {
69- DependencyValues . withValue ( \. self, . init( ) ) {
70- DependencyValues . withValue ( \. context, . test) {
69+ DependencyValues . withValue ( \. self, . init( ) ) {
70+ DependencyValues . withValue ( \. context, . test) {
7171 @Dependency ( \. reuseClient) var reuseClient : ReuseClient
7272
7373 XCTAssertEqual ( reuseClient. count ( ) , 0 )
@@ -95,16 +95,16 @@ final class DependencyValuesTests: XCTestCase {
9595 XCTAssertEqual ( reuseClient. count ( ) , 42 )
9696
9797 DependencyValues . withValue ( \. context, . live) {
98- #if DEBUG
99- XCTExpectFailure {
100- $0. compactDescription. contains (
101- """
102- @Dependency( \\ .reuseClient) " has no live implementation, but was accessed from a live \
103- context.
104- """
105- )
106- }
107- #endif
98+ #if DEBUG
99+ XCTExpectFailure {
100+ $0. compactDescription. contains (
101+ """
102+ @Dependency( \\ .reuseClient) " has no live implementation, but was accessed from a live \
103+ context.
104+ """
105+ )
106+ }
107+ #endif
108108 XCTAssertEqual ( reuseClient. count ( ) , 0 )
109109 reuseClient. setCount ( - 42 )
110110 XCTAssertEqual (
@@ -145,37 +145,37 @@ final class DependencyValuesTests: XCTestCase {
145145 func testBinding( ) {
146146 DependencyValues . withValue ( \. context, . test) {
147147 @Dependency ( \. childDependencyEarlyBinding) var childDependencyEarlyBinding :
148- ChildDependencyEarlyBinding
148+ ChildDependencyEarlyBinding
149149 @Dependency ( \. childDependencyLateBinding) var childDependencyLateBinding :
150- ChildDependencyLateBinding
151-
150+ ChildDependencyLateBinding
151+
152152 XCTAssertEqual ( childDependencyEarlyBinding. fetch ( ) , 42 )
153153 XCTAssertEqual ( childDependencyLateBinding. fetch ( ) , 42 )
154-
154+
155155 DependencyValues . withValue ( \. someDependency. fetch, { 1729 } ) {
156156 XCTAssertEqual ( childDependencyEarlyBinding. fetch ( ) , 1729 )
157157 XCTAssertEqual ( childDependencyLateBinding. fetch ( ) , 1729 )
158158 }
159-
159+
160160 var childDependencyEarlyBindingEscaped : ChildDependencyEarlyBinding !
161161 var childDependencyLateBindingEscaped : ChildDependencyLateBinding !
162-
162+
163163 DependencyValues . withValue ( \. someDependency. fetch, { 999 } ) {
164164 @Dependency ( \. childDependencyEarlyBinding) var childDependencyEarlyBinding2 :
165- ChildDependencyEarlyBinding
165+ ChildDependencyEarlyBinding
166166 @Dependency ( \. childDependencyLateBinding) var childDependencyLateBinding2 :
167- ChildDependencyLateBinding
168-
167+ ChildDependencyLateBinding
168+
169169 childDependencyEarlyBindingEscaped = childDependencyEarlyBinding
170170 childDependencyLateBindingEscaped = childDependencyLateBinding
171-
171+
172172 XCTAssertEqual ( childDependencyEarlyBinding2. fetch ( ) , 999 )
173173 XCTAssertEqual ( childDependencyLateBinding2. fetch ( ) , 999 )
174174 }
175-
175+
176176 XCTAssertEqual ( childDependencyEarlyBindingEscaped. fetch ( ) , 42 )
177177 XCTAssertEqual ( childDependencyLateBindingEscaped. fetch ( ) , 42 )
178-
178+
179179 DependencyValues . withValue ( \. someDependency. fetch, { 1_000 } ) {
180180 XCTAssertEqual ( childDependencyEarlyBindingEscaped. fetch ( ) , 1_000 )
181181 XCTAssertEqual ( childDependencyLateBindingEscaped. fetch ( ) , 1_000 )
0 commit comments