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.

4 lines
206 B

  1. execfile("tests/_lib.sol")
  2. assert_eq(5, for i in range(10) do if i == 5 then break i end end, "break with value")
  3. assert_eq([0, 2, 4, 6, 8], for i in range(5) do continue 2 * i end, "continue with value")