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

Remove irrelevant Milena test value/interop.

	* tests/value/interop.cc: Remove.
	* tests/value/Makefile.am (check_PROGRAMS): Remove interop.
parent 26ad0e38
2014-06-24 Roland Levillain <roland@lrde.epita.fr>
Remove irrelevant Milena test value/interop.
* tests/value/interop.cc: Remove.
* tests/value/Makefile.am (check_PROGRAMS): Remove interop.
2014-06-20 Roland Levillain <roland@lrde.epita.fr>
 
Remove mentions to trash/ directories in Milena.
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 EPITA Research and
# Development Laboratory (LRDE).
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 EPITA
# Research and Development Laboratory (LRDE).
#
# This file is part of Olena.
#
......@@ -29,7 +29,6 @@ check_PROGRAMS = \
int_s \
int_s16 \
int_u8 \
interop \
label \
proxy \
rgb8 \
......
// Copyright (C) 2007, 2008, 2009 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/int_u8.hh>
#include <mln/value/int_s8.hh>
#include <mln/value/int_u16.hh>
#include <mln/value/float01_8.hh>
int main()
{
using namespace mln;
using value::int_u8;
using value::int_u16;
using value::float01_8;
// Tests on int_u<n> alone.
{
int_u8 i;
i = 51;
i *= 2;
}
using value::int_s8;
// FIXME: Dead code?
// {
// // Operations on int_u<n>
// int_u8 i = 128;
// int_u16 j = 42;
// int_s8 k = 42;
// float01_8 x;
// (j = j + i) = i + j;
// mln_assertion(j == (128 + 42));
// (k = j - i) = i - j;
// mln_assertion(k == (-42));
// j = 2;
// (j = j * i) = i * j;
// mln_assertion(j == (2 * 128));
// (x = (j / i) / ((j / i) + 0.1))
// = (i / j) / ((i / j) + 0.1);
// // std::cout << i + i << std::endl;
// // float01_8 f = i / 200.5;
// // std::cout << x << std::endl;
// }
// {
// // Operations on int_u<n> and int / float
// int_u16 j = 42;
// int_s8 k = 42;
// float x;
// // int
// (k = j - 123) = 123 - j;
// (j = j + 123) = 123 + j;
// (j = j * 4) = 4 * j;
// (j = j / 4) = 4 / j;
// // float
// x = (j / 4.5 * 3.4 + 3.5 - 5.6) / 0.0234;
// }
// {
// // Operations on int_u<n> and float01_8
// int_u16 j = 42;
// float01_8 x = 0.456;
// x = x / j;
// mln_assertion(x < 0 && x < 1);
// x = x * j;
// mln_assertion(x < 0 && x < 1);
// x = x * j;
// mln_assertion(x < 0 && x < 1);
// }
}
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