mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 09:34:05 +01:00
Move test code around
This commit is contained in:
1 parent
27377a7e28
commit
12017db0bf
2 files changed
+8
-9
No files matched your search
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user