home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-06-13 | 943 b | 54 lines | [TEXT/EDIT] |
- -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C)
- -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
- --
- class TEST_RENAME1
-
- inherit
- ANY
- rename equal as dummy_equal
- end;
-
- creation {ANY}
- make
-
- feature {ANY}
-
- r: INTEGER is
- do
- Result := 1;
- end;
-
- make is
- local
- aux: AUX_RENAME1;
- c: TEST_RENAME1;
- do
- -- ?? is_true(dummy_equal(Current,Current));
- -- PB dans rename of real procedure.
-
- is_true(r = 1);
- !!aux;
- is_true(aux.r = 2);
- is_true(aux.super_r = 1);
- c := Current;
- is_true(c.r = 1);
- c := aux;
- is_true(c.r = 1);
- end;
-
- is_true(b: BOOLEAN) is
- do
- cpt := cpt + 1;
- if not b then
- std_output.put_string("TEST_RENAME1: ERROR Test # ");
- std_output.put_integer(cpt);
- std_output.put_string("%N");
- else
- -- std_output.put_string("Yes%N");
- end;
- end;
-
- cpt: INTEGER;
-
- end -- TEST_RENAME1
-