xref: /aosp_15_r20/external/one-true-awk/testdir/t.assert (revision 9a7741de182b2776d7b30d6355f2585c0780a51b)
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