提交 12017db0 编写于 作者: B Behdad Esfahbod

Move test code around

上级 27377a7e
...@@ -28,6 +28,12 @@ ...@@ -28,6 +28,12 @@
#include "hb-algs.hh" #include "hb-algs.hh"
static char *
test_func (int a, char **b)
{
return b ? b[a] : nullptr;
}
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {
...@@ -46,5 +52,7 @@ main (int argc, char **argv) ...@@ -46,5 +52,7 @@ main (int argc, char **argv)
q.second = 4; q.second = 4;
assert (i == 4); assert (i == 4);
hb_invoke (test_func, 0, nullptr);
return 0; return 0;
} }
...@@ -99,12 +99,6 @@ test_iterable (const Iterable &lst = Null(Iterable)) ...@@ -99,12 +99,6 @@ test_iterable (const Iterable &lst = Null(Iterable))
test_iterator (lst.iter ()); test_iterator (lst.iter ());
} }
static char *
test_func (int a, char **b)
{
return b[a];
}
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {
...@@ -203,8 +197,5 @@ main (int argc, char **argv) ...@@ -203,8 +197,5 @@ main (int argc, char **argv)
long vl; long vl;
s >> vl; s >> vl;
if (0)
hb_invoke (test_func, 0, nullptr);
return 0; return 0;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册