提交 5266ca86 编写于 作者: B Behdad Esfahbod

Fix tests

Oops.
上级 5da8a3a9
...@@ -62,13 +62,13 @@ main (int argc, char **argv) ...@@ -62,13 +62,13 @@ main (int argc, char **argv)
A a; A a;
hb_invoke (&A::a, a); hb_invoke (&A::a, a);
assert (1 == hb_min (3, 8, 1, 2)); assert (1 == hb_min (8, 1));
assert (8 == hb_max (3, 8, 1, 2)); assert (8 == hb_max (8, 1));
int x = 1, y = 2; int x = 1, y = 2;
hb_min (x, 3); hb_min (x, 3);
hb_min (3, x, 4); hb_min (3, x);
hb_min (3, x, 4 + 3); hb_min (x, 4 + 3);
int &z = hb_min (x, y); int &z = hb_min (x, y);
z = 3; z = 3;
assert (x == 3); assert (x == 3);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册