xref: /illumos-gate/usr/src/test/util-tests/tests/awk/examples/awk/t.assert (revision e6d6c189fa3a95d7aa27bbe0aeacf7c1a6b57c8c)
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