#!/usr/bin/ruby

false ->
    && die "This should not be printed";              # not printed


true ->
    && false ->
        && die "Error!";                              # not printed

(false || false || true) == true || die "Bool error!\n";

while (false) {
    die "While error!\n";
}

true ->
    && true ->
        && say "** Test passed!" ->                 # printed
            && false ->
                && die "But failed at the end!"     # not printed
