doc: use ASCII in .texi files where UTF-8 isn't needed
[gnulib.git] / tests / test-sqrtf.c
index ec8d5e8..e385c50 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of sqrtf() function.
-   Copyright (C) 2010-2011 Free Software Foundation, Inc.
+   Copyright (C) 2010-2014 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #include "signature.h"
 SIGNATURE_CHECK (sqrtf, float, (float));
 
+#include <float.h>
+
 #include "macros.h"
 
-volatile float x;
-float y;
+#define DOUBLE float
+#define L_(literal) literal##f
+#define MANT_DIG FLT_MANT_DIG
+#define SQRT sqrtf
+#define RANDOM randomf
+#include "test-sqrt.h"
 
 int
 main ()
@@ -36,5 +42,7 @@ main ()
   y = sqrtf (x);
   ASSERT (y >= 0.7745966f && y <= 0.7745967f);
 
+  test_function ();
+
   return 0;
 }