The Sol Programming Language!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

5 lines
226 B

execfile('tests/_lib.sol')
assert_eq(try(range)[0], 0, "range with no args causes error")
assert_eq(try(range, [])[0], 0, "range with list arg causes error")
assert_eq(try(range, {})[0], 0, "range with map arg causes error")