Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libm Fix some typos.
details: https://anonhg.NetBSD.org/src/rev/668d2e696e08
branches: trunk
changeset: 327357:668d2e696e08
user: dsl <dsl%NetBSD.org@localhost>
date: Wed Mar 05 20:14:46 2014 +0000
description:
Fix some typos.
Make the infinity and nan constants 'double' not 'long double'.
diffstat:
tests/lib/libm/t_acos.c | 8 ++++----
tests/lib/libm/t_libm.h | 10 +++++-----
2 files changed, 9 insertions(+), 9 deletions(-)
diffs (62 lines):
diff -r e07a461b0a20 -r 668d2e696e08 tests/lib/libm/t_acos.c
--- a/tests/lib/libm/t_acos.c Wed Mar 05 20:14:15 2014 +0000
+++ b/tests/lib/libm/t_acos.c Wed Mar 05 20:14:46 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_acos.c,v 1.9 2014/03/05 19:43:46 dsl Exp $ */
+/* $NetBSD: t_acos.c,v 1.10 2014/03/05 20:14:46 dsl Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
* acos(3) and acosf(3)
*/
-AFT_LIBM_TEST(acos_is_nan, "Test acos/acosf(x) == NaN, x = NaN, +/-Inf, ![-1..1]")
+ATF_LIBM_TEST(acos_is_nan, "Test acos/acosf(x) == NaN, x = NaN, +/-Inf, ![-1..1]")
{
static const double x[] = {
-1.000000001, 1.000000001,
@@ -59,7 +59,7 @@
}
}
-AFT_LIBM_TEST(acos_inrange, "Test acos/acosf(x) for some valid values")
+ATF_LIBM_TEST(acos_inrange, "Test acos/acosf(x) for some valid values")
{
static const struct {
double x;
@@ -88,7 +88,7 @@
}
}
-AFT_LIBM_TEST(acos_is_plus_zero, "Test acosf(1.0) == +0.0")
+ATF_LIBM_TEST(acos_is_plus_zero, "Test acosf(1.0) == +0.0")
{
T_LIBM_CHECK_PLUS_ZERO(0, acos, 1.0);
T_LIBM_CHECK_PLUS_ZERO(0, acosf, 1.0);
diff -r e07a461b0a20 -r 668d2e696e08 tests/lib/libm/t_libm.h
--- a/tests/lib/libm/t_libm.h Wed Mar 05 20:14:15 2014 +0000
+++ b/tests/lib/libm/t_libm.h Wed Mar 05 20:14:46 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_libm.h,v 1.1 2014/03/05 19:43:46 dsl Exp $ */
+/* $NetBSD: t_libm.h,v 1.2 2014/03/05 20:14:46 dsl Exp $ */
/*
* Check result of fn(arg) is correct within the bounds.
@@ -43,12 +43,12 @@
} while (0)
/* Some useful constants (for test vectors) */
-#define T_LIBM_NAN (0.0L / 0.0L)
-#define T_LIBM_PLUS_INF (+1.0L / 0.0L)
-#define T_LIBM_MINUS_INF (-1.0L / 0.0L)
+#define T_LIBM_NAN (0.0 / 0.0)
+#define T_LIBM_PLUS_INF (+1.0 / 0.0)
+#define T_LIBM_MINUS_INF (-1.0 / 0.0)
/* One line definition of a simple test */
-#define AFT_LIBM_TEST(name, description) \
+#define ATF_LIBM_TEST(name, description) \
ATF_TC(name); \
ATF_TC_HEAD(name, tc) { atf_tc_set_md_var(tc, "descr", description); } \
ATF_TC_BODY(name, tc)
Home |
Main Index |
Thread Index |
Old Index