mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
							parent
							
								
									27b9518423
								
							
						
					
					
						commit
						dd3afa2877
					
				| @ -585,6 +585,22 @@ BOOST_AUTO_TEST_CASE(inc_dec_operators) | |||||||
| 	BOOST_CHECK(callContractFunction("f()") == encodeArgs(0x53866)); | 	BOOST_CHECK(callContractFunction("f()") == encodeArgs(0x53866)); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | BOOST_AUTO_TEST_CASE(bytes_comparison) | ||||||
|  | { | ||||||
|  | 	char const* sourceCode = R"( | ||||||
|  | 		contract test { | ||||||
|  | 			function f() returns (bool) { | ||||||
|  | 				bytes2 a = "a"; | ||||||
|  | 				bytes2 x = "aa"; | ||||||
|  | 				bytes2 b = "b"; | ||||||
|  | 				return a < x && x < b; | ||||||
|  | 			} | ||||||
|  | 		} | ||||||
|  | 	)"; | ||||||
|  | 	compileAndRun(sourceCode); | ||||||
|  | 	BOOST_CHECK(callContractFunction("f()") == encodeArgs(true)); | ||||||
|  | } | ||||||
|  | 
 | ||||||
| BOOST_AUTO_TEST_CASE(state_smoke_test) | BOOST_AUTO_TEST_CASE(state_smoke_test) | ||||||
| { | { | ||||||
| 	char const* sourceCode = "contract test {\n" | 	char const* sourceCode = "contract test {\n" | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user