xref: /freebsd/contrib/one-true-awk/testdir/t.assert (revision 7c31cdfa408a4ebce7a3e10d29056a15c28bc092)
1# tests whether function returns sensible type bits
2
3function assert(cond) { # assertion
4    if (!cond) print "   >>> assert failed <<<"
5}
6
7function i(x) { return x }
8
9{ m = length($1); n = length($2); n = i(n); assert(m > n) }
10