mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	stPrecompiledContracts from transaction test
This commit is contained in:
		
							parent
							
								
									87b09c3ed4
								
							
						
					
					
						commit
						8f2f69f490
					
				| @ -344,6 +344,16 @@ void ImportTest::exportTest(bytes const& _output, State const& _statePost) | |||||||
| 
 | 
 | ||||||
| 	m_TestObject["out"] = (_output.size() > 4096 && !Options::get().fulloutput) ? "#" + toString(_output.size()) : toHex(_output, 2, HexPrefix::Add); | 	m_TestObject["out"] = (_output.size() > 4096 && !Options::get().fulloutput) ? "#" + toString(_output.size()) : toHex(_output, 2, HexPrefix::Add); | ||||||
| 
 | 
 | ||||||
|  | 	// compare expected output with post output
 | ||||||
|  | 	if (m_TestObject.count("expectOut") > 0) | ||||||
|  | 	{ | ||||||
|  | 		std::string warning = "Check State: Error! Unexpected output: " + m_TestObject["out"].get_str() + " Expected: " + m_TestObject["expectOut"].get_str(); | ||||||
|  | 		if (Options::get().checkState) | ||||||
|  | 			BOOST_CHECK_MESSAGE((m_TestObject["out"].get_str() == m_TestObject["expectOut"].get_str()), warning); | ||||||
|  | 		else | ||||||
|  | 			BOOST_WARN_MESSAGE((m_TestObject["out"].get_str() == m_TestObject["expectOut"].get_str()), warning); | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
| 	// export logs
 | 	// export logs
 | ||||||
| 	m_TestObject["logs"] = exportLog(_statePost.pending().size() ? _statePost.log(0) : LogEntries()); | 	m_TestObject["logs"] = exportLog(_statePost.pending().size() ? _statePost.log(0) : LogEntries()); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user