mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	merge
This commit is contained in:
		
							parent
							
								
									4f589053a0
								
							
						
					
					
						commit
						66154817f9
					
				
							
								
								
									
										25
									
								
								state.cpp
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								state.cpp
									
									
									
									
									
								
							| @ -45,7 +45,7 @@ void doStateTests(json_spirit::mValue& v, bool _fillin) | |||||||
| { | { | ||||||
| 	for (auto& i: v.get_obj()) | 	for (auto& i: v.get_obj()) | ||||||
| 	{ | 	{ | ||||||
| 		cnote << i.first; | 		cerr << i.first << endl; | ||||||
| 		mObject& o = i.second.get_obj(); | 		mObject& o = i.second.get_obj(); | ||||||
| 
 | 
 | ||||||
| 		BOOST_REQUIRE(o.count("env") > 0); | 		BOOST_REQUIRE(o.count("env") > 0); | ||||||
| @ -81,6 +81,9 @@ void doStateTests(json_spirit::mValue& v, bool _fillin) | |||||||
| 			// check output
 | 			// check output
 | ||||||
| 			checkOutput(output, o); | 			checkOutput(output, o); | ||||||
| 
 | 
 | ||||||
|  | 			// check logs
 | ||||||
|  | 			checkLog(theState.pending().size() ? theState.log(0) : LogEntries(), importer.m_environment.sub.logs); | ||||||
|  | 
 | ||||||
| 			// check addresses
 | 			// check addresses
 | ||||||
| 			auto expectedAddrs = importer.m_statePost.addresses(); | 			auto expectedAddrs = importer.m_statePost.addresses(); | ||||||
| 			auto resultAddrs = theState.addresses(); | 			auto resultAddrs = theState.addresses(); | ||||||
| @ -122,6 +125,26 @@ BOOST_AUTO_TEST_CASE(stPreCompiledContracts) | |||||||
| 	dev::test::executeTests("stPreCompiledContracts", "/StateTests", dev::test::doStateTests); | 	dev::test::executeTests("stPreCompiledContracts", "/StateTests", dev::test::doStateTests); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | BOOST_AUTO_TEST_CASE(stLogTests) | ||||||
|  | { | ||||||
|  | 	dev::test::executeTests("stLogTests", "/StateTests", dev::test::doStateTests); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | BOOST_AUTO_TEST_CASE(stRecursiveCreate) | ||||||
|  | { | ||||||
|  | 	dev::test::executeTests("stRecursiveCreate", "/StateTests", dev::test::doStateTests); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | BOOST_AUTO_TEST_CASE(stInitCodeTest) | ||||||
|  | { | ||||||
|  | 	dev::test::executeTests("stInitCodeTest", "/StateTests", dev::test::doStateTests); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | BOOST_AUTO_TEST_CASE(stSpecialTest) | ||||||
|  | { | ||||||
|  | 	dev::test::executeTests("stSpecialTest", "/StateTests", dev::test::doStateTests); | ||||||
|  | } | ||||||
|  | 
 | ||||||
| BOOST_AUTO_TEST_CASE(stCreateTest) | BOOST_AUTO_TEST_CASE(stCreateTest) | ||||||
| { | { | ||||||
| 	for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i) | 	for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user