Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libm Improve the metadata descriptions.



details:   https://anonhg.NetBSD.org/src/rev/df6398d3d73d
branches:  trunk
changeset: 769507:df6398d3d73d
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Mon Sep 12 17:45:51 2011 +0000

description:
Improve the metadata descriptions.

diffstat:

 tests/lib/libm/t_ldexp.c  |  24 ++++++++++++------------
 tests/lib/libm/t_scalbn.c |  34 +++++++++++++++++-----------------
 tests/lib/libm/t_tanh.c   |  24 ++++++++++++------------
 3 files changed, 41 insertions(+), 41 deletions(-)

diffs (truncated from 369 to 300 lines):

diff -r f58c51c63bb8 -r df6398d3d73d tests/lib/libm/t_ldexp.c
--- a/tests/lib/libm/t_ldexp.c  Mon Sep 12 17:15:54 2011 +0000
+++ b/tests/lib/libm/t_ldexp.c  Mon Sep 12 17:45:51 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ldexp.c,v 1.3 2011/09/12 16:28:37 jruoho Exp $ */
+/* $NetBSD: t_ldexp.c,v 1.4 2011/09/12 17:46:39 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ldexp.c,v 1.3 2011/09/12 16:28:37 jruoho Exp $");
+__RCSID("$NetBSD: t_ldexp.c,v 1.4 2011/09/12 17:46:39 jruoho Exp $");
 
 #include <math.h>
 #include <limits.h>
@@ -44,7 +44,7 @@
 ATF_TC(ldexp_nan);
 ATF_TC_HEAD(ldexp_nan, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test NaN with ldexp(3)");
+       atf_tc_set_md_var(tc, "descr", "Test ldexp(NaN) == NaN");
 }
 
 ATF_TC_BODY(ldexp_nan, tc)
@@ -66,7 +66,7 @@
 ATF_TC(ldexp_inf_neg);
 ATF_TC_HEAD(ldexp_inf_neg, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test -Inf with ldexp(3)");
+       atf_tc_set_md_var(tc, "descr", "Test ldexp(-Inf) == -Inf");
 }
 
 ATF_TC_BODY(ldexp_inf_neg, tc)
@@ -83,7 +83,7 @@
 ATF_TC(ldexp_inf_pos);
 ATF_TC_HEAD(ldexp_inf_pos, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test +Inf with ldexp(3)");
+       atf_tc_set_md_var(tc, "descr", "Test ldexp(+Inf) == +Inf");
 }
 
 ATF_TC_BODY(ldexp_inf_pos, tc)
@@ -100,7 +100,7 @@
 ATF_TC(ldexp_zero_neg);
 ATF_TC_HEAD(ldexp_zero_neg, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test -0.0 with ldexp(3)");
+       atf_tc_set_md_var(tc, "descr", "Test ldexp(-0.0) == -0.0");
 }
 
 ATF_TC_BODY(ldexp_zero_neg, tc)
@@ -123,7 +123,7 @@
 ATF_TC(ldexp_zero_pos);
 ATF_TC_HEAD(ldexp_zero_pos, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test +0.0 with ldexp(3)");
+       atf_tc_set_md_var(tc, "descr", "Test ldexp(+0.0) == +0.0");
 }
 
 ATF_TC_BODY(ldexp_zero_pos, tc)
@@ -146,7 +146,7 @@
 ATF_TC(ldexpf_nan);
 ATF_TC_HEAD(ldexpf_nan, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test NaN with ldexpf(3)");
+       atf_tc_set_md_var(tc, "descr", "Test ldexpf(NaN) == NaN");
 }
 
 ATF_TC_BODY(ldexpf_nan, tc)
@@ -172,7 +172,7 @@
 ATF_TC(ldexpf_inf_neg);
 ATF_TC_HEAD(ldexpf_inf_neg, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test -Inf with ldexpf(3)");
+       atf_tc_set_md_var(tc, "descr", "Test ldexpf(-Inf) == -Inf");
 }
 
 ATF_TC_BODY(ldexpf_inf_neg, tc)
@@ -189,7 +189,7 @@
 ATF_TC(ldexpf_inf_pos);
 ATF_TC_HEAD(ldexpf_inf_pos, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test +Inf with ldexpf(3)");
+       atf_tc_set_md_var(tc, "descr", "Test ldexpf(+Inf) == +Inf");
 }
 
 ATF_TC_BODY(ldexpf_inf_pos, tc)
@@ -206,7 +206,7 @@
 ATF_TC(ldexpf_zero_neg);
 ATF_TC_HEAD(ldexpf_zero_neg, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test -0.0 with ldexpf(3)");
+       atf_tc_set_md_var(tc, "descr", "Test ldexpf(-0.0) == -0.0");
 }
 
 ATF_TC_BODY(ldexpf_zero_neg, tc)
@@ -229,7 +229,7 @@
 ATF_TC(ldexpf_zero_pos);
 ATF_TC_HEAD(ldexpf_zero_pos, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test +0.0 with ldexpf(3)");
+       atf_tc_set_md_var(tc, "descr", "Test ldexpf(+0.0) == +0.0");
 }
 
 ATF_TC_BODY(ldexpf_zero_pos, tc)
diff -r f58c51c63bb8 -r df6398d3d73d tests/lib/libm/t_scalbn.c
--- a/tests/lib/libm/t_scalbn.c Mon Sep 12 17:15:54 2011 +0000
+++ b/tests/lib/libm/t_scalbn.c Mon Sep 12 17:45:51 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_scalbn.c,v 1.3 2011/09/12 16:28:37 jruoho Exp $ */
+/* $NetBSD: t_scalbn.c,v 1.4 2011/09/12 17:45:51 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_scalbn.c,v 1.3 2011/09/12 16:28:37 jruoho Exp $");
+__RCSID("$NetBSD: t_scalbn.c,v 1.4 2011/09/12 17:45:51 jruoho Exp $");
 
 #include <math.h>
 #include <limits.h>
@@ -44,7 +44,7 @@
 ATF_TC(scalbn_nan);
 ATF_TC_HEAD(scalbn_nan, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test NaN with scalbn(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbn(NaN) == NaN");
 }
 
 ATF_TC_BODY(scalbn_nan, tc)
@@ -66,7 +66,7 @@
 ATF_TC(scalbn_inf_neg);
 ATF_TC_HEAD(scalbn_inf_neg, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test -Inf with scalbn(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbn(-Inf) == -Inf");
 }
 
 ATF_TC_BODY(scalbn_inf_neg, tc)
@@ -83,7 +83,7 @@
 ATF_TC(scalbn_inf_pos);
 ATF_TC_HEAD(scalbn_inf_pos, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test +Inf with scalbn(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbn(+Inf) == +Inf");
 }
 
 ATF_TC_BODY(scalbn_inf_pos, tc)
@@ -100,7 +100,7 @@
 ATF_TC(scalbn_zero_neg);
 ATF_TC_HEAD(scalbn_zero_neg, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test -0.0 with scalbn(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbn(-0.0) == -0.0");
 }
 
 ATF_TC_BODY(scalbn_zero_neg, tc)
@@ -123,7 +123,7 @@
 ATF_TC(scalbn_zero_pos);
 ATF_TC_HEAD(scalbn_zero_pos, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test +0.0 with scalbn(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbn(+0.0) == +0.0");
 }
 
 ATF_TC_BODY(scalbn_zero_pos, tc)
@@ -149,7 +149,7 @@
 ATF_TC(scalbnf_nan);
 ATF_TC_HEAD(scalbnf_nan, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test NaN with scalbnf(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbnf(NaN) == NaN");
 }
 
 ATF_TC_BODY(scalbnf_nan, tc)
@@ -171,7 +171,7 @@
 ATF_TC(scalbnf_inf_neg);
 ATF_TC_HEAD(scalbnf_inf_neg, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test -Inf with scalbnf(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbnf(-Inf) == -Inf");
 }
 
 ATF_TC_BODY(scalbnf_inf_neg, tc)
@@ -188,7 +188,7 @@
 ATF_TC(scalbnf_inf_pos);
 ATF_TC_HEAD(scalbnf_inf_pos, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test +Inf with scalbnf(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbnf(+Inf) == +Inf");
 }
 
 ATF_TC_BODY(scalbnf_inf_pos, tc)
@@ -205,7 +205,7 @@
 ATF_TC(scalbnf_zero_neg);
 ATF_TC_HEAD(scalbnf_zero_neg, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test -0.0 with scalbnf(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbnf(-0.0) == -0.0");
 }
 
 ATF_TC_BODY(scalbnf_zero_neg, tc)
@@ -228,7 +228,7 @@
 ATF_TC(scalbnf_zero_pos);
 ATF_TC_HEAD(scalbnf_zero_pos, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test +0.0 with scalbnf(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbnf(+0.0) == +0.0");
 }
 
 ATF_TC_BODY(scalbnf_zero_pos, tc)
@@ -254,7 +254,7 @@
 ATF_TC(scalbnl_nan);
 ATF_TC_HEAD(scalbnl_nan, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test NaN with scalbnl(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbnl(NaN) == NaN");
 }
 
 ATF_TC_BODY(scalbnl_nan, tc)
@@ -280,7 +280,7 @@
 ATF_TC(scalbnl_inf_neg);
 ATF_TC_HEAD(scalbnl_inf_neg, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test -Inf with scalbnl(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbnl(-Inf) == -Inf");
 }
 
 ATF_TC_BODY(scalbnl_inf_neg, tc)
@@ -301,7 +301,7 @@
 ATF_TC(scalbnl_inf_pos);
 ATF_TC_HEAD(scalbnl_inf_pos, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test +Inf with scalbnl(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbnl(+Inf) == +Inf");
 }
 
 ATF_TC_BODY(scalbnl_inf_pos, tc)
@@ -322,7 +322,7 @@
 ATF_TC(scalbnl_zero_neg);
 ATF_TC_HEAD(scalbnl_zero_neg, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test -0.0 with scalbnl(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbnl(-0.0) == -0.0");
 }
 
 ATF_TC_BODY(scalbnl_zero_neg, tc)
@@ -349,7 +349,7 @@
 ATF_TC(scalbnl_zero_pos);
 ATF_TC_HEAD(scalbnl_zero_pos, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test +0.0 with scalbnl(3)");
+       atf_tc_set_md_var(tc, "descr", "Test scalbnl(+0.0) == +0.0");
 }
 
 ATF_TC_BODY(scalbnl_zero_pos, tc)
diff -r f58c51c63bb8 -r df6398d3d73d tests/lib/libm/t_tanh.c
--- a/tests/lib/libm/t_tanh.c   Mon Sep 12 17:15:54 2011 +0000
+++ b/tests/lib/libm/t_tanh.c   Mon Sep 12 17:45:51 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_tanh.c,v 1.5 2011/09/12 16:28:37 jruoho Exp $ */
+/* $NetBSD: t_tanh.c,v 1.6 2011/09/12 17:45:51 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_tanh.c,v 1.5 2011/09/12 16:28:37 jruoho Exp $");
+__RCSID("$NetBSD: t_tanh.c,v 1.6 2011/09/12 17:45:51 jruoho Exp $");
 
 #include <atf-c.h>
 #include <math.h>
@@ -40,7 +40,7 @@
 ATF_TC(tanh_nan);
 ATF_TC_HEAD(tanh_nan, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test NaN with tanh(3)");
+       atf_tc_set_md_var(tc, "descr", "Test tanh(NaN) == NaN");
 }
 
 ATF_TC_BODY(tanh_nan, tc)
@@ -56,7 +56,7 @@
 ATF_TC(tanh_inf_neg);
 ATF_TC_HEAD(tanh_inf_neg, tc)
 {
-       atf_tc_set_md_var(tc, "descr", "Test -Inf with tanh(3)");
+       atf_tc_set_md_var(tc, "descr", "Test tanh(-Inf) == -1.0");
 }
 
 ATF_TC_BODY(tanh_inf_neg, tc)
@@ -71,7 +71,7 @@
 ATF_TC(tanh_inf_pos);
 ATF_TC_HEAD(tanh_inf_pos, tc)



Home | Main Index | Thread Index | Old Index