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.

6 lines
339 B

  1. execfile("tests/_lib.sol")
  2. assert_eq(try(apply)[0], 0, "apply with no args causes error")
  3. assert_eq(try(apply, print, 7)[0], 0, "apply with non-list (int) causes error")
  4. assert_eq(try(apply, print, {})[0], 0, "apply with non-list (map) causes error")
  5. assert_eq(try(apply, print, "foo")[0], 0, "apply with non-list (strbuf) causes error")