home *** CD-ROM | disk | FTP | other *** search
- -- $Source: /home/harp/1/proto/monoBANK/winnt/test_ass.adb,v $
- -- $Revision: 1.2 $ $Date: 95/02/02 15:50:56 $ $Author: mg $
- -------------------------------------------------------------------------------
- --
- -- THIS FILE AND ANY ASSOCIATED DOCUMENTATION IS FURNISHED "AS IS" WITHOUT
- -- WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
- -- TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
- -- PURPOSE. The user assumes the entire risk as to the accuracy and the
- -- use of this file.
- --
- -- Copyright (c) Intermetrics, Inc. 1995
- -- Royalty-free, unlimited, worldwide, non-exclusive use, modification,
- -- reproduction and further distribution of this file is permitted.
- --
- -------------------------------------------------------------------------------
-
-
- with Win32.Assert;
- with Text_IO; use Text_IO;
-
- procedure Test_Assert is
- I, J: Integer;
- begin
- New_Line;
- Put_Line("(Supposed to succeed)");
- Win32.Assert.Assert(I=I);
- I := 1;
- Put_Line("(Supposed to succeed)");
- Win32.Assert.Assert(I=1, "I=1", "this file", 10);
- I := 5;
- J := I+1;
- Put_Line("(Supposed to fail)");
- Win32.Assert.Assert(I=J, "I=J", "this file", 14);
- end Test_Assert;
-