Skip to content

Commit 5731de2

Browse files
Rename Tests to swift style convention.
1 parent 6bff25e commit 5731de2

28 files changed

+396
-396
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ let package = Package(
4242
.testTarget(
4343
name: "localTests",
4444
dependencies: ["web3swift"],
45-
path: "Tests/web3swiftTests/local_tests",
45+
path: "Tests/web3swiftTests/localTests",
4646
resources: [
4747
.copy("../../../TestToken/Helpers/SafeMath/SafeMath.sol"),
4848
.copy("../../../TestToken/Helpers/TokenBasics/ERC20.sol"),
@@ -53,7 +53,7 @@ let package = Package(
5353
.testTarget(
5454
name: "remoteTests",
5555
dependencies: ["web3swift"],
56-
path: "Tests/web3swiftTests/infura_tests",
56+
path: "Tests/web3swiftTests/infuraTests",
5757
resources: [
5858
.copy("../../../TestToken/Helpers/SafeMath/SafeMath.sol"),
5959
.copy("../../../TestToken/Helpers/TokenBasics/ERC20.sol"),

Tests/web3swiftTests/infura_tests/web3swift_ENS_Tests.swift renamed to Tests/web3swiftTests/infuraTests/web3swiftENSTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import XCTest
99
@testable import web3swift
1010

1111
// MARK: Works only with network connection
12-
class web3swift_ENS_Tests: XCTestCase {
12+
class web3swiftENSTests: XCTestCase {
1313

1414
func testDomainNormalization() throws {
1515
let normalizedString = NameHash.normalizeDomainName("example.ens")

Tests/web3swiftTests/infura_tests/web3swift_infura_Tests.swift renamed to Tests/web3swiftTests/infuraTests/web3swiftInfuraTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import XCTest
99
@testable import web3swift
1010

1111
// MARK: Works only with network connection
12-
class web3swift_infura_Tests: XCTestCase {
12+
class web3swiftInfuraTests: XCTestCase {
1313

1414
func testGetBalance() throws {
1515
do {

Tests/web3swiftTests/infura_tests/web3swift_remoteParsing_Tests.swift renamed to Tests/web3swiftTests/infuraTests/web3swiftPemoteParsingTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import BigInt
1111
@testable import web3swift
1212

1313
// MARK: Works only with network connection
14-
class web3swift_remoteParsing_Tests: XCTestCase {
14+
class web3swiftPemoteParsingTests: XCTestCase {
1515

1616
func testEventParsing1usingABIv2() throws {
1717
print(1)

Tests/web3swiftTests/infura_tests/web3swift_ST20AndSecurityToken_Tests.swift renamed to Tests/web3swiftTests/infuraTests/web3swiftST20AndSecurityTokenTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import BigInt
1111
@testable import web3swift
1212

1313
// MARK: Works only with network connection
14-
class web3swift_ST20AndSecurityToken_Tests: XCTestCase {
14+
class web3swiftST20AndSecurityTokenTests: XCTestCase {
1515

1616
func testERC20TokenCreation() throws {
1717
let web3 = Web3.InfuraKovanWeb3()

Tests/web3swiftTests/infura_tests/web3swift_Websockets_Tests.swift renamed to Tests/web3swiftTests/infuraTests/web3swiftWebsocketTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class SpyDelegate: Web3SocketDelegate {
5656
}
5757

5858
// MARK: Works only with network connection
59-
class web3swift_websocket_Tests: XCTestCase {
59+
class web3swiftWebsocketTests: XCTestCase {
6060

6161
let spyDelegate = SpyDelegate()
6262
var socketProvider: InfuraWebsocketProvider?

Tests/web3swiftTests/local_tests/web3swift_AdvancedABIv2_Tests.swift renamed to Tests/web3swiftTests/localTests/web3swiftAdvancedABIv2Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import BigInt
1010

1111
@testable import web3swift
1212

13-
class web3swift_AdvancedABIv2_Tests: XCTestCase {
13+
class web3swiftAdvancedABIv2Tests: XCTestCase {
1414

1515
func testAdvancedABIv2() throws {
1616
let abiString = "[{\"constant\":true,\"inputs\":[],\"name\":\"testDynOfDyn\",\"outputs\":[{\"name\":\"ts\",\"type\":\"string[]\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"testStOfDyn\",\"outputs\":[{\"name\":\"ts\",\"type\":\"string[2]\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"testDynArray\",\"outputs\":[{\"components\":[{\"name\":\"number\",\"type\":\"uint256\"},{\"name\":\"someText\",\"type\":\"string\"},{\"name\":\"staticArray\",\"type\":\"uint256[2]\"},{\"name\":\"dynamicArray\",\"type\":\"uint256[]\"},{\"name\":\"anotherDynamicArray\",\"type\":\"string[2]\"}],\"name\":\"ts\",\"type\":\"tuple[]\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"testStaticArray\",\"outputs\":[{\"components\":[{\"name\":\"number\",\"type\":\"uint256\"},{\"name\":\"someText\",\"type\":\"string\"},{\"name\":\"staticArray\",\"type\":\"uint256[2]\"},{\"name\":\"dynamicArray\",\"type\":\"uint256[]\"},{\"name\":\"anotherDynamicArray\",\"type\":\"string[2]\"}],\"name\":\"ts\",\"type\":\"tuple[2]\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"testSingle\",\"outputs\":[{\"components\":[{\"name\":\"number\",\"type\":\"uint256\"},{\"name\":\"someText\",\"type\":\"string\"},{\"name\":\"staticArray\",\"type\":\"uint256[2]\"},{\"name\":\"dynamicArray\",\"type\":\"uint256[]\"},{\"name\":\"anotherDynamicArray\",\"type\":\"string[2]\"}],\"name\":\"t\",\"type\":\"tuple\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}]"

0 commit comments

Comments
 (0)