slovo/tests/random.surface.lower
2026-05-22 08:38:43 +02:00

17 lines
351 B
Plaintext

program main
fn random_i32() -> i32
call std.random.i32
fn random_is_non_negative() -> bool
if
binary <
call random_i32
int 0
bool false
bool true
fn main() -> i32
call std.io.print_bool
call random_is_non_negative
int 0
test "random i32 is non-negative"
call random_is_non_negative