diff --git a/Utils/Tests/UtilsTests/H256Tests.swift b/Utils/Tests/UtilsTests/Data32Tests.swift similarity index 75% rename from Utils/Tests/UtilsTests/H256Tests.swift rename to Utils/Tests/UtilsTests/Data32Tests.swift index 4372781b..06dc1d42 100644 --- a/Utils/Tests/UtilsTests/H256Tests.swift +++ b/Utils/Tests/UtilsTests/Data32Tests.swift @@ -2,9 +2,9 @@ import XCTest @testable import Utils -final class H256Tests: XCTestCase { +final class Data32Tests: XCTestCase { func testZero() throws { - let value = H256.zero + let value = Data32() XCTAssertEqual(value.data, Data(repeating: 0, count: 32)) XCTAssertEqual( value.description, "0x0000000000000000000000000000000000000000000000000000000000000000" @@ -16,7 +16,7 @@ final class H256Tests: XCTestCase { for i in 0 ..< 32 { data[i] = UInt8(i) } - let value = H256(data)! + let value = Data32(data)! XCTAssertEqual(value.data, data) XCTAssertEqual( value.description, "0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f" @@ -24,7 +24,7 @@ final class H256Tests: XCTestCase { } func testInitWithInvalidData() throws { - XCTAssertNil(H256(Data(repeating: 0, count: 31))) - XCTAssertNil(H256(Data(repeating: 0, count: 33))) + XCTAssertNil(Data32(Data(repeating: 0, count: 31))) + XCTAssertNil(Data32(Data(repeating: 0, count: 33))) } }