Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
one-true-awk
/
d54b703cae9c5e7d5cf0f251bc847d38a70170c4
/
.
/
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
)
}