/src/wrappers/common/test/test_natural3.e
http://github.com/tybor/Liberty · Specman e · 38 lines · 15 code · 8 blank · 15 comment · 0 complexity · 96dbd9c7936a72503552520779420b27 MD5 · raw file
- class TEST_NATURAL3
- inherit
- EIFFELTEST_TOOLS
- create {ANY}
- make
- feature {ANY}
- make
- local
- n0: NATURAL_8
- do
- n0.make_from_signed(4)
- assert(n0.one + n0.one + n0.one + n0.one = n0)
- assert(n0 + n0.zero = n0)
- end
- end -- class TEST_NATURAL3
- -- Copyright (C) 2009-2017: , 2013 Paolo Redaelli, 2013 Cyril Adrian
- -- This library is free software; you can redistribute it and/or
- -- modify it under the terms of the GNU Lesser General Public License
- -- as published by the Free Software Foundation; either version 2.1 of
- -- the License, or (at your option) any later version.
- --
- -- This library 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
- -- Lesser General Public License for more details.
- --
- -- You should have received a copy of the GNU Lesser General Public
- -- License along with this library; if not, write to the Free Software
- -- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- -- 02110-1301 USA