Move test code around

This commit is contained in:
Behdad Esfahbod 2019-04-24 09:24:38 -04:00
parent 27377a7e28
commit 12017db0bf
2 changed files with 8 additions and 9 deletions

View File

@ -28,6 +28,12 @@
#include "hb-algs.hh"
static char *
test_func (int a, char **b)
{
return b ? b[a] : nullptr;
}
int
main (int argc, char **argv)
{
@ -46,5 +52,7 @@ main (int argc, char **argv)
q.second = 4;
assert (i == 4);
hb_invoke (test_func, 0, nullptr);
return 0;
}

View File

@ -99,12 +99,6 @@ test_iterable (const Iterable &lst = Null(Iterable))
test_iterator (lst.iter ());
}
static char *
test_func (int a, char **b)
{
return b[a];
}
int
main (int argc, char **argv)
{
@ -203,8 +197,5 @@ main (int argc, char **argv)
long vl;
s >> vl;
if (0)
hb_invoke (test_func, 0, nullptr);
return 0;
}