home *** CD-ROM | disk | FTP | other *** search
- -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C)
- -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
- --
- class TEST_REAL_CONSTANT
- --
- -- Olivier ZENDRA Test (Thanks).
- --
-
- creation
- make
-
- feature
- make is
- do
- r := 0.7;
- d := 0.7;
-
- is_true(r = 0.7);
- is_true(d = 0.7);
- is_true(d = r);
- ensure
- r_ok: r = 0.7;
- d_ok: d = 0.7;
- r_et_r: d = r;
- end;
-
- r: REAL;
- d: DOUBLE;
-
- is_true(b: BOOLEAN) is
- do
- cpt := cpt + 1;
- if not b then
- std_output.put_string("TEST_REAL: ERROR Test # ");
- std_output.put_integer(cpt);
- std_output.put_string("%N");
- else
- -- std_output.put_string("Yes%N");
- end;
- end;
-
- cpt: INTEGER;
-
- end
-