Commit a42fcb6d authored by Roland Levillain's avatar Roland Levillain
Browse files

Add a test on built-in floating point value's traits.

	* tests/value/builtin/floatings.cc: New.
	* tests/value/builtin/Makefile.am (check_PROGRAMS): Add floatings.
	(floatings_SOURCES): New.
parent 8a8fddca
2010-10-21 Roland Levillain <roland@lrde.epita.fr>
Add a test on built-in floating point value's traits.
* tests/value/builtin/floatings.cc: New.
* tests/value/builtin/Makefile.am (check_PROGRAMS): Add floatings.
(floatings_SOURCES): New.
2010-10-21 Roland Levillain <roland@lrde.epita.fr>
 
Add macros for non-template contexts in mln/value/ops.hh.
# Copyright (C) 2007, 2008, 2009 EPITA Research and Development
# Copyright (C) 2007, 2008, 2009, 2010 EPITA Research and Development
# Laboratory (LRDE).
#
# This file is part of Olena.
......@@ -18,9 +18,11 @@
include $(top_srcdir)/milena/tests/tests.mk
check_PROGRAMS = \
builtin
builtin \
floatings
# FIXME: Rename this test, as `builtin' is not enough relevant.
builtin_SOURCES = builtin.cc
floatings_SOURCES = floatings.cc
TESTS = $(check_PROGRAMS)
// Copyright (C) 2010 EPITA Research and Development Laboratory (LRDE)
//
// This file is part of Olena.
//
// Olena is free software: you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation, version 2 of the License.
//
// Olena is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Olena. If not, see <http://www.gnu.org/licenses/>.
//
// As a special exception, you may use this file as part of a free
// software project without restriction. Specifically, if other files
// instantiate templates or use macros or inline functions from this
// file, or you compile this file and link it with other files to produce
// an executable, this file does not by itself cause the resulting
// executable to be covered by the GNU General Public License. This
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
#include <mln/value/ops.hh>
#include <mln/value/builtin/floatings.hh>
int main()
{
std::cout << "mln_sum_product_(float, float) is `"
<< mln_trait_value_name(mln_sum_product_(float, float)) << "'"
<< std::endl;
// FIXME: Displays `float': probably not good. :(
std::cout << "mln_sum_product_(double, double)) is `"
<< mln_trait_value_name(mln_sum_product_(double, double)) << "'"
<< std::endl;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment