Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 95a32f7

Browse files
committed
Enable previously broken tests
1 parent e15bfee commit 95a32f7

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed
File renamed without changes.

ethcore/src/ethereum/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ pub fn new_mainnet_like() -> Spec { load(None, include_bytes!("../../res/ethereu
9090
/// Create a new Foundation Byzantium era spec.
9191
pub fn new_byzantium_test() -> Spec { load(None, include_bytes!("../../res/ethereum/byzantium_test.json")) }
9292

93-
/// Create a new Foundation Constaniple era spec.
94-
pub fn new_constaninople_test() -> Spec { load(None, include_bytes!("../../res/ethereum/constaniple_test.json")) }
93+
/// Create a new Foundation Constantinople era spec.
94+
pub fn new_constantinople_test() -> Spec { load(None, include_bytes!("../../res/ethereum/constantinople_test.json")) }
9595

9696
#[cfg(test)]
9797
mod tests {

ethcore/src/json_tests/chain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ mod block_tests {
132132
declare_test!{BlockchainTests_GeneralStateTest_stRecursiveCreate, "BlockchainTests/GeneralStateTests/stRecursiveCreate/"}
133133
declare_test!{BlockchainTests_GeneralStateTest_stRefundTest, "BlockchainTests/GeneralStateTests/stRefundTest/"}
134134
declare_test!{BlockchainTests_GeneralStateTest_stReturnDataTest, "BlockchainTests/GeneralStateTests/stReturnDataTest/"}
135-
declare_test!{skip => [ "RevertDepthCreateAddressCollision" ], BlockchainTests_GeneralStateTest_stRevertTest, "BlockchainTests/GeneralStateTests/stRevertTest/"}
135+
declare_test!{BlockchainTests_GeneralStateTest_stRevertTest, "BlockchainTests/GeneralStateTests/stRevertTest/"}
136136
declare_test!{BlockchainTests_GeneralStateTest_stSolidityTest, "BlockchainTests/GeneralStateTests/stSolidityTest/"}
137137
declare_test!{BlockchainTests_GeneralStateTest_stSpecialTest, "BlockchainTests/GeneralStateTests/stSpecialTest/"}
138138
declare_test!{BlockchainTests_GeneralStateTest_stStackTests, "BlockchainTests/GeneralStateTests/stStackTests/"}

ethcore/src/json_tests/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ mod state_tests {
122122
declare_test!{GeneralStateTest_stRecursiveCreate, "GeneralStateTests/stRecursiveCreate/"}
123123
declare_test!{GeneralStateTest_stRefundTest, "GeneralStateTests/stRefundTest/"}
124124
declare_test!{GeneralStateTest_stReturnDataTest, "GeneralStateTests/stReturnDataTest/"}
125-
declare_test!{skip => [ "RevertDepthCreateAddressCollision" ], GeneralStateTest_stRevertTest, "GeneralStateTests/stRevertTest/"}
125+
declare_test!{GeneralStateTest_stRevertTest, "GeneralStateTests/stRevertTest/"}
126126
declare_test!{GeneralStateTest_stSolidityTest, "GeneralStateTests/stSolidityTest/"}
127127
declare_test!{GeneralStateTest_stSpecialTest, "GeneralStateTests/stSpecialTest/"}
128128
declare_test!{GeneralStateTest_stStackTests, "GeneralStateTests/stStackTests/"}

ethcore/src/tests/evm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn test_blockhash_eip210(factory: Factory) {
2323
let test_blockhash_contract = "73fffffffffffffffffffffffffffffffffffffffe33141561007a57600143036020526000356101006020510755600061010060205107141561005057600035610100610100602051050761010001555b6000620100006020510714156100755760003561010062010000602051050761020001555b61014a565b4360003512151561009057600060405260206040f35b610100600035430312156100b357610100600035075460605260206060f3610149565b62010000600035430312156100d157600061010060003507146100d4565b60005b156100f6576101006101006000350507610100015460805260206080f3610148565b630100000060003543031215610116576000620100006000350714610119565b60005b1561013c57610100620100006000350507610200015460a052602060a0f3610147565b600060c052602060c0f35b5b5b5b5b";
2424
let blockhash_contract_code = Arc::new(test_blockhash_contract.from_hex().unwrap());
2525
let blockhash_contract_code_hash = keccak(blockhash_contract_code.as_ref());
26-
let engine = TestEngine::new_constaninople();
26+
let engine = TestEngine::new_constantinople();
2727
let mut env_info = EnvInfo::default();
2828

2929
// populate state with 256 last hashes

ethcore/src/tests/helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ impl TestEngine {
6161
}
6262
}
6363

64-
pub fn new_constaninople() -> TestEngine {
64+
pub fn new_constantinople() -> TestEngine {
6565
TestEngine {
66-
engine: ethereum::new_constaninople_test().engine,
66+
engine: ethereum::new_constantinople_test().engine,
6767
max_depth: 0,
6868
}
6969
}

0 commit comments

Comments
 (0)