Sign in
android
/
platform
/
external
/
one-true-awk
/
98987d69a40fa705e4a0b18277033319e4debac0
/
.
/
testdir
/
t.assert
blob: c30499c0a15ac2065877aa4cdcd5ea0ec0d54191 [
file
] [
log
] [
blame
]
# 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
)
}