summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/log10/testFloatLog10.c
diff options
context:
space:
mode:
authorjofret2008-04-21 14:49:26 +0000
committerjofret2008-04-21 14:49:26 +0000
commitd9f4f0670e2c9ad1bb1ba34c1b951663f042bea4 (patch)
treed006dd6f4cd2e81565b31bec3657bfe229ed2447 /src/elementaryFunctions/log10/testFloatLog10.c
parente5f156c5940aa8cb1362705671ad3f6d828c5e3a (diff)
downloadscilab2c-d9f4f0670e2c9ad1bb1ba34c1b951663f042bea4.tar.gz
scilab2c-d9f4f0670e2c9ad1bb1ba34c1b951663f042bea4.tar.bz2
scilab2c-d9f4f0670e2c9ad1bb1ba34c1b951663f042bea4.zip
Double vs Float better management. Enable psycho warnings.
Diffstat (limited to 'src/elementaryFunctions/log10/testFloatLog10.c')
-rw-r--r--src/elementaryFunctions/log10/testFloatLog10.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/elementaryFunctions/log10/testFloatLog10.c b/src/elementaryFunctions/log10/testFloatLog10.c
new file mode 100644
index 00000000..f3a8b953
--- /dev/null
+++ b/src/elementaryFunctions/log10/testFloatLog10.c
@@ -0,0 +1,36 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006-2008 - INRIA - Bruno JOFRET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+#include "testLog10.h"
+
+void slog10sTest(void) {
+ /* FIXME : Implement some test here ... */
+ printf(">> Float scalar\n");
+ printf("slog10s(0) = %f\n", slog10s(0.0f));
+}
+
+int testLog10(void) {
+ printf("\n>>>> 10-Based Logarithm Tests\n");
+ slog10sTest();
+ /* FIXME : Implement some test here ... */
+ /*
+ clog10sTest();
+ slog10aTest();
+ clog10aTest();
+ */
+ return 0;
+}
+
+int main(void) {
+ assert(testLog10() == 0);
+ return 0;
+}