@@ -57,7 +57,7 @@ final class BIP44Tests: XCTestCase {
5757 }
5858 private var mockTransactionChecker : MockTransactionChecker = . init( )
5959
60- func testDeriveNoWarn ( ) async throws {
60+ func testDeriveWithoutThrowOnError ( ) async throws {
6161 let rootNode = try rootNode ( )
6262
6363 let childNode = try await rootNode. derive ( path: " m/44'/60'/8096'/0/1 " , throwOnError: false , transactionChecker: mockTransactionChecker)
@@ -77,7 +77,7 @@ final class BIP44Tests: XCTestCase {
7777
7878 // MARK: - address
7979
80- func testAccountZeroCanBeDerivedAlways ( ) async throws {
80+ func testZeroAccountNeverThrow ( ) async throws {
8181 let rootNode = try rootNode ( )
8282
8383 let childNode = try await rootNode. derive ( path: " m/44'/60'/0'/0/255 " , throwOnError: true , transactionChecker: mockTransactionChecker)
@@ -86,7 +86,7 @@ final class BIP44Tests: XCTestCase {
8686 XCTAssertEqual ( mockTransactionChecker. addresses. count, 0 )
8787 }
8888
89- func testAccountOneWithoutTransactionsInAccountZeroWarns ( ) async throws {
89+ func testFirstAccountWithNoPreviousTransactionHistory ( ) async throws {
9090 do {
9191 let rootNode = try rootNode ( )
9292 let path = " m/44'/60'/1'/0/0 "
@@ -98,12 +98,11 @@ final class BIP44Tests: XCTestCase {
9898
9999 XCTFail ( " Child must not be created using warns true for the path: \( path) " )
100100 } catch BIP44Error . warning {
101- XCTAssertTrue ( true )
102101 XCTAssertEqual ( mockTransactionChecker. addresses, accountZeroScannedAddresses)
103102 }
104103 }
105104
106- func testAccountOneWithTransactionsInAccountZeroNotWarns ( ) async throws {
105+ func testFirstAccountWithPreviousTransactionHistory ( ) async throws {
107106 do {
108107 let rootNode = try rootNode ( )
109108 let path = " m/44'/60'/1'/0/0 "
@@ -120,7 +119,7 @@ final class BIP44Tests: XCTestCase {
120119 }
121120 }
122121
123- func testAccountTwoWithTransactionsInAccountZeroButNotInOneWarns ( ) async throws {
122+ func testSecondAccountWithNoPreviousTransactionHistory ( ) async throws {
124123 do {
125124 let rootNode = try rootNode ( )
126125 let path = " m/44'/60'/2'/0/0 "
@@ -133,15 +132,14 @@ final class BIP44Tests: XCTestCase {
133132
134133 XCTFail ( " Child must not be created using warns true for the path: \( path) " )
135134 } catch BIP44Error . warning {
136- XCTAssertTrue ( true )
137135 XCTAssertEqual ( mockTransactionChecker. addresses, accountZeroAndOneScannedAddresses)
138136 XCTAssertEqual ( mockTransactionChecker. addresses. count, 21 )
139137 }
140138 }
141139
142140 // MARK: - change + addressIndex
143141
144- func testAccountOneAndInternalAndNotZeroAddressIndexWithTransactionsInAccountZeroNotWarns ( ) async throws {
142+ func testNotZeroChangeAndAddressIndexWithPreviousTransactionHistory ( ) async throws {
145143 do {
146144 let rootNode = try rootNode ( )
147145 let path = " m/44'/60'/1'/1/128 "
0 commit comments