aboutsummaryrefslogtreecommitdiff
path: root/testdir/t.assert
blob: c30499c0a15ac2065877aa4cdcd5ea0ec0d54191 (plain)
1
2
3
4
5
6
7
8
9
# tests whether function returns sensible type bits

function assert(cond) { # assertion
    if (!cond) print "   >>> assert failed <<<"
}

function i(x) { return x }

{ m = length($1); n = length($2); n = i(n); assert(m > n) }